- Posts: 25
- Thank you received: 0
Additional advert positions
-
micke@sanda.nu
Inactive member - Topic Author
- Member
Less
More
10 years 10 months ago - 10 years 10 months ago #36667
by micke@sanda.nu
Additional advert positions was created by micke@sanda.nu
Hello,
Let me begin by saying THANK YOU for all the great templates that i used all these years. I keep on returning here because the templates are so easy to customize and they work.
Anyways, my question concerns additional advert modules besides the advert 1 through 4.
I modified templatedetails.xml like this:
<position>advert1</position>
<position>advert2</position>
<position>advert3</position>
<position>advert4</position>
<position>advert5</position>
<position>advert6</position>
<position>advert7</position>
<position>advert8</position>
I also modified index.php like this:
$showadvert[1] = $this->countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');
$showadvert[5] = $this->countModules('advert5');
$showadvert[6] = $this->countModules('advert6');
$showadvert[7] = $this->countModules('advert7');
$showadvert[8] = $this->countModules('advert8');
Can you please instruct me on what additional changes i need to make in order to show additional advert modules 5--8 right below advert modules 1--4 ? I mean one more row of advert modules.
Thank you in advance,
Mike
Let me begin by saying THANK YOU for all the great templates that i used all these years. I keep on returning here because the templates are so easy to customize and they work.
Anyways, my question concerns additional advert modules besides the advert 1 through 4.
I modified templatedetails.xml like this:
<position>advert1</position>
<position>advert2</position>
<position>advert3</position>
<position>advert4</position>
<position>advert5</position>
<position>advert6</position>
<position>advert7</position>
<position>advert8</position>
I also modified index.php like this:
$showadvert[1] = $this->countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');
$showadvert[5] = $this->countModules('advert5');
$showadvert[6] = $this->countModules('advert6');
$showadvert[7] = $this->countModules('advert7');
$showadvert[8] = $this->countModules('advert8');
Can you please instruct me on what additional changes i need to make in order to show additional advert modules 5--8 right below advert modules 1--4 ? I mean one more row of advert modules.
Thank you in advance,
Mike
Last edit: 10 years 10 months ago by micke@sanda.nu.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 10 months ago #36679
by ivan.milic
Replied by ivan.milic on topic Additional advert positions
You need to put them. In index.php you need to put code like this:
<jdoc:include type="modules" name="advert8" style="hot" />
some ware, and there it will appear.
<jdoc:include type="modules" name="advert8" style="hot" />
some ware, and there it will appear.
Please Log in to join the conversation.
Time to create page: 0.143 seconds