Adding more tabs

  • MSH
    Inactive member
  • Topic Author
  • Member
  • Member
More
14 years 7 months ago - 14 years 7 months ago #1229 by MSH
Adding more tabs was created by MSH
Milos,

Thank you for all the support provided for this great product.
I desperately need to have 7 tabs, I would be grateful if you could provide me with a solution that will do this.

Regards,

Mike
Last edit: 14 years 7 months ago by milos.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 7 months ago - 14 years 7 months ago #1230 by milos
Replied by milos on topic Re: 7 Tabs
I can't describe this in details, but you need to edit mod_hot_newsflash.xml and mod_hot_newsflash.php.

1. Add another two groups of content elements in the bottom of mod_hot_newsflash.xml and add 6 and 7 options for tabNumber drop-down element (I gave you example for 6)
Code:
<param type="spacer" default="Article 6" /> <param name="heading6" type="text" default="Lorem Ipsum" label="LABEL HEADING" description="DESC HEADING" /> <param name="link6" type="text" default="#" label="LABEL LINK" description="DESC LINK" /> <param name="info6" type="textarea" cols="50" rows="4" default="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam." label="LABEL INFO" description="DESC INFO" /> <param name="image6" type="text" default="taking_notes.jpg" label="LABEL IMAGE" description="DESC IMAGE" />

2. In mod_hot_newsflash.php, change $loop <= 5 to $loop <= 7 everywhere.

I believe that's all.
Last edit: 14 years 7 months ago by milos.

Please Log in to join the conversation.

  • MSH
    Inactive member
  • Topic Author
  • Member
  • Member
More
14 years 7 months ago #1231 by MSH
Replied by MSH on topic Re: 7 Tabs
Excellent excellent! Works really well thank you so much for your the speed of your response and help.

Thank you.

Mike

Please Log in to join the conversation.

More
14 years 1 month ago #3794 by cuevision
Replied by cuevision on topic Re: 7 Tabs
Hi This is realy nice.

And to make it complete, also put in the mod_hot_newsflash.xml from line 41:

<option value="1">1</option>.....
<option value="1">6</option>

With this also the mod adminside is complete.

Nice day!

Ed

Please Log in to join the conversation.

More
12 years 6 months ago - 12 years 6 months ago #18934 by scottshort
Replied by scottshort on topic Re: 7 Tabs
Hi,

Could it be that this code has been changed from 2 years ago? I tried copying the code into file mod_hot_newsflash.xml with no success. Since the suggested code is different from existing code in my file, I copied two more groups into file using same structure. Below you can see original article 5 and the new article 6 and article 7.



I also added tab numbers 6 & 7 to the xml file



as well as changing out the 5's for 7's in the php file.



Now I can see the articles perfectly on admin side, but i still only see original 5 articles on front end.



Can you see what I have done wrong? Sending links via moderator. Thanks for help

Scott

mod_hot_newflash.xml:

<fieldset name="article5" label="LABEL ARTICLE5">
<field name="heading5" type="text" default="" label="LABEL HEADING" description="DESC HEADING" />
<field name="link5" type="text" default="" label="LABEL LINK" description="DESC LINK" />
<field name="info5" type="textarea" cols="50" rows="4" default="" label="LABEL INFO" description="DESC INFO" />
<field name="image5" type="media" default="" label="LABEL IMAGE" description="DESC IMAGE" />
</fieldset>
<fieldset name="article6" label="LABEL ARTICLE6">
<field name="heading6" type="text" default="" label="LABEL HEADING" description="DESC HEADING" />
<field name="link6" type="text" default="" label="LABEL LINK" description="DESC LINK" />
<field name="info6" type="textarea" cols="50" rows="4" default="" label="LABEL INFO" description="DESC INFO" />
<field name="image6" type="media" default="" label="LABEL IMAGE" description="DESC IMAGE" />
</fieldset>
<fieldset name="article7" label="LABEL ARTICLE7">
<field name="heading7" type="text" default="" label="LABEL HEADING" description="DESC HEADING" />
<field name="link7" type="text" default="" label="LABEL LINK" description="DESC LINK" />
<field name="info7" type="textarea" cols="50" rows="4" default="" label="LABEL INFO" description="DESC INFO" />
<field name="image7" type="media" default="" label="LABEL IMAGE" description="DESC IMAGE" />
</fieldset>
</fields>
</config>
</extension>
Attachments:
Last edit: 12 years 6 months ago by scottshort.

Please Log in to join the conversation.

More
12 years 6 months ago #18950 by ivan.milic
Replied by ivan.milic on topic Re: 7 Tabs
did you change tmpl/default.php

Please Log in to join the conversation.

Time to create page: 0.167 seconds
Powered by Kunena Forum