ChristopheSeg / J-TrackGallery

Track Gallery component for Joomla
6 stars 1 forks source link

template.css not found #32

Closed mastervanleeuwen closed 7 years ago

mastervanleeuwen commented 7 years ago

Dear Christophe,

When using the Joomgallery plugin (and looking at the pages in developer mode), I got a warning that:

/components/com_jtg/template.css does not exist This files seems to be located in /administrator/components/com_jtg/template.css So I think the fix is to change line 172 of the jtrackgallery_maps.php file to: $document->addStyleSheet(JUri::base(true) . '/administrator/components/com_jtg/template.css'); There are similar links in the following files: administrator/components/com_jtg/views/files/tmpl/form.php administrator/components/com_jtg/views/files/tmpl/default.php administrator/components/com_jtg/views/files/tmpl/element.php I have not fully checked whether those are OK. Best regards, Marco.
ChristopheSeg commented 7 years ago

Than you for reporting this. The 3 link you mentioned for the administrator part are OK since using JURI::base in the admin part link to /administrator folder.

line 172 in plugin/content/jtrackgallery_maps/jtrackgallery_maps.php is of course wrong. The exact fix is that you can remove this line which is no longer needed (style is called in lines 179 to 186 )

Regards, Christophe