PLG Alignment and Categories

Phoca Maps - displaying maps in Joomla! CMS
sappie_hans
Phoca Member
Phoca Member
Posts: 16
Joined: 17 Dec 2019, 10:39

PLG Alignment and Categories

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9086
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: PLG Alignment and Categories

Post by Benno »

Hi,
regarding 2. see: https://www.phoca.cz/documents/16-jooml ... t-articles

Kind regards,
Benno
christine
Phoca Hero
Phoca Hero
Posts: 2710
Joined: 28 Nov 2010, 17:20

Re: PLG Alignment and Categories

Post by christine »

Hi,
1.: add to your custom.css:

Code: Select all

.phocamaps-box {
text-align:left;	
}
Kind regards
Christine
sappie_hans
Phoca Member
Phoca Member
Posts: 16
Joined: 17 Dec 2019, 10:39

Re: PLG Alignment and Categories

Post by sappie_hans »

Hi Christine, thanks for your help. It works very good!
Hans
sappie_hans
Phoca Member
Phoca Member
Posts: 16
Joined: 17 Dec 2019, 10:39

Re: PLG Alignment and Categories

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PLG Alignment and Categories

Post 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
If you find Phoca extensions useful, please support the project
sappie_hans
Phoca Member
Phoca Member
Posts: 16
Joined: 17 Dec 2019, 10:39

Re: PLG Alignment and Categories

Post 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
sappie_hans
Phoca Member
Phoca Member
Posts: 16
Joined: 17 Dec 2019, 10:39

Re: PLG Alignment and Categories

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PLG Alignment and Categories

Post 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:
If you find Phoca extensions useful, please support the project
sappie_hans
Phoca Member
Phoca Member
Posts: 16
Joined: 17 Dec 2019, 10:39

Re: PLG Alignment and Categories

Post 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.
Post Reply