PLG Alignment and Categories
-
- Phoca Member
- Posts: 16
- Joined: 17 Dec 2019, 10:39
PLG Alignment and Categories
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
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
- Benno
- Phoca Hero
- Posts: 9449
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: PLG Alignment and Categories
Hi,
1.: add to your custom.css:
Kind regards
Christine
1.: add to your custom.css:
Code: Select all
.phocamaps-box {
text-align:left;
}
Christine
-
- Phoca Member
- Posts: 16
- Joined: 17 Dec 2019, 10:39
Re: PLG Alignment and Categories
Hi Christine, thanks for your help. It works very good!
Hans
Hans
-
- Phoca Member
- Posts: 16
- Joined: 17 Dec 2019, 10:39
Re: PLG Alignment and Categories
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
Regards
Hans
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PLG Alignment and Categories
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 16
- Joined: 17 Dec 2019, 10:39
Re: PLG Alignment and Categories
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
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
-
- Phoca Member
- Posts: 16
- Joined: 17 Dec 2019, 10:39
Re: PLG Alignment and Categories
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:
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 to exchange this with the above coding of JHTML.
Hans
I don't know, where to place the code:
Code: Select all
echo JHTML::_('content.prepare', $this->category->description);
Code: Select all
echo $this->category->description;
Hans
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: PLG Alignment and Categories
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.
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 16
- Joined: 17 Dec 2019, 10:39
Re: PLG Alignment and Categories
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.
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.