Page 1 of 2

PLG Alignment and Categories

Posted: 17 Dec 2019, 10:50
by sappie_hans
Hi, I have two minor problems using the plugin for Phoca Maps:
1. I tried to change the css-file for showing the map with align=left, it is shown always with align=center. Which CSS-File do I have to change? Or is there any other way to change the alignment? You can see an example here: https://hansundkarin.de/reisegebiete-au ... aternoster

2. I tried to use the plugin in the text-box of the categories, but if I use it, there is no map shown, only the frame of the map.

May be there is someone, who has a hint for me.
Thanks and regards
Hans

Re: PLG Alignment and Categories

Posted: 17 Dec 2019, 11:37
by Benno
Hi,
regarding 2. see: https://www.phoca.cz/documents/16-jooml ... t-articles

Kind regards,
Benno

Re: PLG Alignment and Categories

Posted: 17 Dec 2019, 14:11
by christine
Hi,
1.: add to your custom.css:

Code: Select all

.phocamaps-box {
text-align:left;	
}
Kind regards
Christine

Re: PLG Alignment and Categories

Posted: 18 Dec 2019, 07:37
by sappie_hans
Hi Christine, thanks for your help. It works very good!
Hans

Re: PLG Alignment and Categories

Posted: 18 Dec 2019, 07:46
by sappie_hans
Hi Benno, thanks for your response, but sorry, I don't know, where I have to make this changes. Do I have to change the code of the Phoca Maps Plugin?
Regards
Hans

Re: PLG Alignment and Categories

Posted: 18 Dec 2019, 16:53
by Jan
Hi, you need to do the changes in the part where do you want to display the plugin or another plugins - so in this case in "in the text-box of the categories". Unfortunately hard to say which part this can be as there is no information which categories do you exactly mean. If article categories, then the article view for categories needs to be checked.

Jan

Re: PLG Alignment and Categories

Posted: 18 Dec 2019, 19:07
by sappie_hans
Hi Jan, I need this function in the Content -> categories. I had tried in the description {phocamaps view=map|id=4}
After implementing this, I see only the frame without the map.
Should I change the phocamaps.php? But there I see nothing with "categories".
Thanks for your help
Hans

Re: PLG Alignment and Categories

Posted: 19 Dec 2019, 08:08
by sappie_hans
So, just to extent my description of my problem, while I was following the instruction of the mentioned URL from Benno:
I don't know, where to place the code:

Code: Select all

echo JHTML::_('content.prepare', $this->category->description);
I put it in the text-box, then I only see this text on the internet-page. I looked into the phocamaps.php, there I didn't find any similar coding like

Code: Select all

echo $this->category->description;
to exchange this with the above coding of JHTML.

Hans

Re: PLG Alignment and Categories

Posted: 22 Dec 2019, 18:39
by Jan
Hi, the code should not be in Phoca Maps but there where you want to display the plugin. In your case, if I understand it correctly, it should be the Content (Article) - Categories view. And the variable will be not "description" but maybe "text", etc. It depend on which view exactly you want to display the plugin code. :idea:

Re: PLG Alignment and Categories

Posted: 24 Dec 2019, 10:35
by sappie_hans
Hi Jan, I'm too stupid!! I have no idea, where I have to make the changes.
It is a menu-item where I display all the contents of one category and there I also want to display the map on top. So, I put the code for the map-plugin in the description.
I created the menu-item as a menu item type: categoy Blog
In the Categoryof the menu item I have "catagory description" marked with show. So, I see the description, I wrote in the category, but only the frame of the map.
This is just the last try, to fix the problem. After this, I give up. It is, like I mentioned at the beginning, a minor problem.