Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Newsflash free Joomla module.

Topic-icon Adding more tabs

More
7 years 7 months ago - 7 years 7 months ago #1229 by MSH
MSH created the topic: Adding more tabs
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: 7 years 7 months ago by milos.

Please Log in to join the conversation.

More
7 years 7 months ago - 7 years 7 months ago #1230 by milos
milos replied the 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)
<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: 7 years 7 months ago by milos.

Please Log in to join the conversation.

More
7 years 7 months ago #1231 by MSH
MSH replied the 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
7 years 3 weeks ago #3794 by cuevision
cuevision replied the 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
5 years 6 months ago - 5 years 6 months ago #18934 by scottshort
scottshort replied the 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: 5 years 6 months ago by scottshort.

Please Log in to join the conversation.

More
5 years 6 months ago #18950 by ivan.milic
ivan.milic replied the topic: Re: 7 Tabs
did you change tmpl/default.php

Please Log in to join the conversation.

Time to create page: 0.092 seconds

Links, Partners and Social Media