Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Adding a module position

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi There,

How do I add a module position to the Zen Gris Framework?

I am using Eco-Lift template at the moment and have been trying to add in a Feedback component:
mertonium.com/2010/07/client-feedback-joomla-extension/

I think the way to get it to work is to create a module position.

My site is on www.mommyhood.co.za

Thanks!!!
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Hi there,

There is a good doc about adding a new position here:

docs.joomla.org/How_do_you_add_a_new_template_position%3F

Probably bes to make the addition to the temaplte overrides, rather than the ZGF index.php itself, /ecolift/layout/main.php is probably your best bet. Just make sure to add the position before the .containerBG div, so that it is not wothin the content container.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Hi Seth,

I gave it a go but I must be doing something wrong as I keep getting a parsing error and still no form showing up.
Not too sure what to do as it's really a valuable little plugin!
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
You have probably just put the code in the wrong place, try moving it around a bit.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
Hey Seth,

I've tried a ton of different ideas but have had no luck! Any advice, I'm sure I'm doing it wrong.

I would really appreciate any help. I'm about to put the site in to Beta testing so really need to get Feedback from people.
Oh, what module / plugin do you use for the Twitter and RSS feeds on the right side of this site?

Thanks so much
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Simon,

Whats the parse error and can you paste the code you have included? plus a few lines either side.

The twitter and rss links are just hardcoded in the template. You can view the source and css to take a look :)

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,

I followed the instructions from the developer:

"There seem to be a number of people having problems using the feedback module because the CSS styles from their template are conflicting with it. One possible solution is to add another module position to you template just for the feedback module. Add it just after the <body> tag so that there will not be many styles cascading onto it. If you’re not sure how to do this, just open the index.php file in your template folder and add the following line after the <body> tag:

<jdoc:include type="modules" name="feedback" style="xhtml" />

Then, open the templateDetails.xml in your template folder and add the following line in the <positions> section:

<position>feedback</position>

Finally, log into the backend of your site and assign mod_feedback to the newly created "feedback" position (which should now appear in ‘position’ dropdown).

If you try this solution, please let me know how it goes for you."

I put it in to the file that Seth told me to but it just didn't appear.

The Parse error is:
XML Parsing Error at 98:63. Error 4: not well-formed (invalid token)

I'm at a loss...
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Right - what is the line at 98 int he templateDetails.xml?
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Antony,

Here is from line 80 - 95:
<position>bottom1</position>
<position>bottom2</position>
<position>bottom3</position>
<position>bottom4</position>
<position>footer</position>
<position>debug</position>
<position>feedback</feedback>
</positions>
<params addpath="/templates/zengridframework/elements">
<param name="@tabs" type="jbtabs" />
<param name="open" type="jbtabopen" default="Template Display Settings" label="" description="" />
<param name="@jboverview" type="jboverview" default="Menu Settings" />
<param type="jbtabsplit" name="two" default="Template Layout" label="" description="" />
<param name="@jbtitle" type="jbtitle" default="Template Style" />
<param name="@desc" type="jbdesc" default="Select the colour hilite to use on your site. Should you want to create your own your hilite the css file should be uploaded to the templates/css/[your template name]/hilite folder" />
<param name="hilite" type="jbhilitelist" default="" label="Template Style" description="Select the colour hilite to use on your site. Should you want to create your own your hilite the css file should be uploaded to the templates/[your template name]/css/hilite folder" exclude="" stripext="true" />

If you like I can give you a username and password to browse around...
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Sorry the error is for line 98 :)
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Sorry... late night + early morning...
(95-102 below)

<param name="hilite" type="jbhilitelist" default="" label="Template Style" description="Select the colour hilite to use on your site. Should you want to create your own your hilite the css file should be uploaded to the templates/[your template name]/css/hilite folder" exclude="" stripext="true" />
<param type="jbtabsplit" name="two" default="Template Layout" label="" description="" />
<param name="@jbtitle" type="jbtitle" default="Logo Settings" />
<param name="@desc" type="jbdesc" default="If you change the <strong>logo folder</strong> used to source your logo image please make sure that you hit apply in order to load the new image files in the logo image dropdownlist.<br /> The dropdownlist that contains the images that are available for the logo will <strong>not</strong> refresh until you do this.<br /><br /> Please note that the width assigned to the logo position needs to balance according it's position. eg If assigned to the same row as the nav then the logo width needs to take the width assigned to the menu in the nav settings. " />
<param name="logoType" type="list" default="below" label="Logo Type" description="Determines whether the logo is an image and sourced from the directory specified below or whether the logo is a string as specified by the Text for logo option below..">
<option value="image">Use image for Logo</option>
<option value="text">Display text using font replacement for logo</option>
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Did you edit this:

<param name="@desc" type="jbdesc" default="If you change the <strong>logo folder</strong> used to source your logo image please make sure that you hit apply in order to load the new image files in the logo image dropdownlist.<br /> The dropdownlist that contains the images that are available for the logo will <strong>not</strong> refresh until you do this.<br /><br /> Please note that the width assigned to the logo position needs to balance according it's position. eg If assigned to the same row as the nav then the logo width needs to take the width assigned to the menu in the nav settings. " />

The </ and /> normally are escaped eg written in html entities. Try removing that from the text and I bvet it will sort itself.

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Sheesh... Sounds a bit complex but I will definitely give it a go.

Where should I add the second part?

<jdoc:include type="modules" name="feedback" style="xhtml" />

Which line and file should I put it in?
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Here is the line from the original file just replace it with this:
<param name="@desc" type="jbdesc" default="If you change the &lt;strong&gt;logo folder&lt;/strong&gt; used to source your logo image please make sure that you hit apply in order to load the new image files in the logo image dropdownlist.&lt;br /&gt; The dropdownlist that contains the images that are available for the logo will &lt;strong&gt;not&lt;/strong&gt; refresh until you do this.&lt;br /&gt;&lt;br /&gt; Please note that the width assigned to the logo position needs to balance according it's position. eg If assigned to the same row as the nav then the logo width needs to take the width assigned to the menu in the nav settings. " />

I would say that your editor has changed the html entities.

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I'm really confused... Please excuse me.

I didn't edit any of those lines. I just added <position>feedback</feedback>

As the last module position and that seemed to mess it all up and the module wouldn't even show.
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Sure thing. Im not sure why tit happened - its possible that teh editor changed it for you.

Let us know if changing the line fixes the issue.

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony, it definitely fixed the Parsing issue, but didn't help much with displaying the module.

I just need to find the right file and line number to add this to:

<jdoc:include type="modules" name="feedback" style="xhtml" />

The Zen Framework has the file structure a little different to normal...
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Right - which file did you put it in?
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I was informed that putting it in /ecolift/layout/main.php is best.
I just have no idea where to put it.
  • Simon Tayler's Avatar
  • Simon Tayler
  • Previous Member
  • 23 posts
  • Karma: 0
The administrator has disabled public write access.
Yep that sounds right.

So if you put that after this code:
<div id="mainContent"  class="<?php echo $mainWidth ?>">

It will show up above the main content area.

Then if it doesn't show then run through all of the obvious checks:

- module is assigned to all menu items
- module is published
- Module appears in other templates also. test this assign to the left module position and then apply the beez or ja purity template just to see that the module is rendering and there is no issue with the module itself.

If none of this fixes it for the sake of getting to the point a little faster if you then create a login for J and ftp details Ill take a look for you - even though this is considered custom work :)

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers