Keyword

Related Articles in the view module

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 week ago #100291 by Andrea
Related Articles in the view module was created by Andrea
Hi guys,

can i show a Related Articles like this image below:

 



How you can see in the black box, i would like insert link about o video or item (Related articles), images.

 

Can i do something like this?

Hope ur answer...

thank you!

regards

andrea

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 week ago #100292 by Andrea
Replied by Andrea on topic Related Articles in the view module
somebody can help me?

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
13 years 1 week ago #100293 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Related Articles in the view module
Hi Andrea,

 

You can use the related items by tag, and do a custom css style for it.

K2 Rocks \m/

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 week ago #100294 by Andrea
Replied by Andrea on topic Related Articles in the view module
sorry.. how i do this? :(

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
13 years 1 week ago #100295 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Related Articles in the view module
You need to add tags while adding items in K2. Then in the Category of the items, set the K2 Parameters -> Item View Options - > Related Items (by tag) set to Show.

 

This will display the related item's title with a link in bullet list style. If you want custom image, then style it in K2.css

div.itemTagsBlock ul.itemTags {css values} div.itemTagsBlock ul.itemTags li {css values}

 

or if you use a template with custom css, then add it there.

K2 Rocks \m/

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 week ago #100296 by Andrea
Replied by Andrea on topic Related Articles in the view module
Nope, don't undestand :( i don't want change css style of the related item's but i want show it like the image.

 

I have a module ( mod_k2_content ) and show the but only the image + text, i would like show the releat item too. it's possibile?

Kannan Naidu said:

You need to add tags while adding items in K2. Then in the Category of the items, set the K2 Parameters -> Item View Options - > Related Items (by tag) set to Show.

 

This will display the related item's title with a link in bullet list style. If you want custom image, then style it in K2.css

div.itemTagsBlock ul.itemTags {css values} div.itemTagsBlock ul.itemTags li {css values}

 

or if you use a template with custom css, then add it there.

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

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
13 years 3 days ago #100297 by Andrea
Replied by Andrea on topic Related Articles in the view module
somebody can help me?

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

More
11 years 5 months ago #100298 by Lalo Putelli
Replied by Lalo Putelli on topic Re: Related Articles in the view module
could you fix it?
I'm looking to do the same or something similar but I get this error

( ! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: Using $this when not in object context in C:\wamp\www\noticias\templates\gk_news\html\mod_k2_content\Default\default.php on line 47
Call Stack
# Time Memory Function Location
1 0.0122 149096 {main}( ) ..\index.php:0
2 1.2119 5508264 JSite->render( ) ..\index.php:58
3 1.7793 6504360 JDocumentHTML->render( ) ..\application.php:290
4 1.7793 6504384 JDocumentHTML->_renderTemplate( ) ..\html.php:462
5 4.5951 8568800 JDocumentHTML->getBuffer( ) ..\html.php:682
6 4.5951 8568992 JDocumentRendererModules->render( ) ..\html.php:399
7 4.5951 8569416 JDocumentRendererModule->render( ) ..\modules.php:39
8 4.5953 8575072 JModuleHelper::renderModule( ) ..\module.php:107
9 4.5962 8608144 include( 'xxxxx\modules\mod_k2_content\mod_k2_content.php' ) ..\helper.php:176
10 5.1321 8754856 require( 'xxxxx\templates\gk_news\html\mod_k2_content\Default\default.php' ) ..\mod_k2_content.php:55


templates\gk_news\html\mod_k2_content\Default

47 <?php foreach($this->relatedItems as $key=>$item): ?>


I hope you can help me

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


Powered by Kunena Forum