Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

useJoomlaArticle question.
(0 viewing) 
Go to bottomPage: 1
TOPIC: useJoomlaArticle question.
#3443
useJoomlaArticle question. 15 Years, 3 Months ago Karma: 0
Hi I have a question regarding the parameters when I use joomla articles.

I have this set up - which works ok.

{arimoonewsticker height="450" width="700" itemWidth="600"
itemPerPage="2" delay="60000" useJoomlaArticle="true" articleSortField="ordering"
articleCatId="8"}
{ariarticletemplate}
{$title}
{$introtext}
{/ariarticletemplate}
{/arimoonewsticker}


Where the $title is I want the title with a link to the article in question.

eg

[code]
<a href="link to the article">$title</a>

So that the user can click on the title and joomla will forward them to the properly formatted - full page article.

How would I code that in the above example ?
The administrator has disabled public write access.
 
#3445
Re:useJoomlaArticle question. 15 Years, 3 Months ago Karma: 0
Never mind - worked it out

{arijnewsslider
height="600" width="800"
useJoomlaArticle="true" articleCatId="10" articleSortField=ordering" speed="2500"
fade="2000" rotate="10000"
articleSortField="created" articleItemCount="10"} {ariarticletemplate}
<a href="index.php?option=com_content&amp;view=article&amp;id={$id}">{$title}</a>;
{$introtext}
{/ariarticletemplate}
{/arijnewsslider}
The administrator has disabled public write access.
 
#3446
Re:useJoomlaArticle question. 15 Years, 3 Months ago Karma: 764
Hello,

You can use {$readmore_link} predefined variable for this purpose. In other words, you can use the following code:

Code:


{arijnewsslider height="600" width="800" useJoomlaArticle="true" articleCatId="10" articleSortField=ordering" speed="2500" fade="2000" rotate="10000" articleSortField="created" articleItemCount="10"} {ariarticletemplate}
<a href="{$readmore_link}">{$title}</a>
{$introtext}
{/ariarticletemplate}
{/arijnewsslider}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#3448
Re:useJoomlaArticle question. 15 Years, 3 Months ago Karma: 0
Thanks - that looks tidier than mine

Where can I find a list of all of the predefined $ variables ?
The administrator has disabled public write access.
 
#3449
Re:useJoomlaArticle question. 15 Years, 3 Months ago Karma: 764
Sorry for delay. You can use the following predefined variables:

id - article id;
title - article title;
alias - article alias;
introtext - intro text;
fulltext - full text;
sectionid - article section id;
catid - article category id;
created - created date;
modified - last modified date;
hits - article hits;
readmore_link - link to article.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1