Keyword

Item list override such as itemview

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 months ago #114813 by George Nasis
Item list override such as itemview was created by George Nasis
Hallo there

we know we can override the template and create as many templates we want. This concens item view. What about itemlist/tag?How can i assign a module on the tag filter???

Thank You

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago - 11 years 3 months ago #114814 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item list override such as itemview
Hello George,

Try this snippet
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 months ago #114815 by George Nasis
Replied by George Nasis on topic Re: Item list override such as itemview
Hallo Krikor and thank you

but in which file and where exactly i apply tis code?in which file?item.php?or perhaps tag.php? and in the file should i write it somewhere specific?

Thank you again

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #114816 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item list override such as itemview
This snippet is for your index.php or the files you serve your modules.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 months ago #114817 by George Nasis
Replied by George Nasis on topic Re: Item list override such as itemview
i suppose the index.php is in my template right?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #114818 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item list override such as itemview
Yes, of course.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 months ago #114819 by George Nasis
Replied by George Nasis on topic Re: Item list override such as itemview
Hallo Krikor

I have write the snippet in index.php and in the tag.php which is in the template i ovverride. But nothing is happening. I am afraid that i am writing wrong the "module position" because it appears in the page as exactly i write it in the snippet. Have you any idea?

Thanx a lot
Log in  or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 3 months ago #114820 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Item list override such as itemview
This snippet is for your index.php only.

In the code you pasted I cannot see the snippet anywhere plus the if ($this->countModules('left') > 0) {
is not closing right after the module. This means if you don't have a module in that position you won't be able to see the component as well.

					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
11 years 3 months ago #114821 by George Nasis
Replied by George Nasis on topic Re: Item list override such as itemview
Hallo Krikor

Yes i realize what do you mean and you have right.But i think my template has something curious about left and right position. It handls syntax error i I try to close the "if" with a "end if". And the } is not closing as it would supoosed to be but in the next lines into another <php if. Here you can look at it to tell me what is going on.

[code type=php-brief] <?php
/*====== Show modules in position "left" ======*/
if ($this->countModules('left') > 0) {
?>
<div id="jsn-leftsidecontent">
<div id="jsn-leftsidecontent_inner">
<div id="jsn-pos-left">
<jdoc:include type="component" />
<jdoc:include type="modules" name="left" style="jsnmodule" class="jsn-roundedbox" />
</div>
</div>
</div>
<?php
}

/*====== Show modules in position "right" ======*/
if ($this->countModules('right') > 0) {
?>
<div id="jsn-rightsidecontent">
<div id="jsn-rightsidecontent_inner">
<div id="jsn-pos-right">
<jdoc:include type="modules" name="right" style="jsnmodule" class="jsn-roundedbox" />
<jdoc:include type="modules" name="newposition" style="jsnmodule" class="jsn-roundedbox" />
</div>
</div>
</div>
<?php
}
?>
<div class="clearbreak"></div></div></div></div></div></div></div></div></div>
</div>[/code]

Please Log in or Create an account to join the conversation.