differences between "call" and "link" tags ?

A general technical discussion area for patTemplate.
Locked
wene
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 203
Joined: Sat Aug 20, 2005 1:40 am
Location: south of France

differences between "call" and "link" tags ?

Post by wene » Sat Nov 12, 2005 1:35 pm

do you know the differences between "link" and "call" tags ?
Last edited by wene on Tue Jan 17, 2006 8:38 pm, edited 1 time in total.

wene
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 203
Joined: Sat Aug 20, 2005 1:40 am
Location: south of France

Re: differences between "call" and "link" tags ?

Post by wene » Mon Nov 21, 2005 12:57 pm

ok,
call is a function and link is a tag....
so i better should begin to try to understand what is a function ... :)

User avatar
masterchief
Joomla! Hero
Joomla! Hero
Posts: 2316
Joined: Fri Aug 12, 2005 2:45 am
Location: Brisbane, Australia
Contact:

Re: differences between "call" and "link" tags ?

Post by masterchief » Fri Dec 09, 2005 3:18 am

Almost, call is like using a template as a function.  You can pass a template some extra argument if you use Call.  For example, you might use the follow in an edit form to describe a field:

Code: Select all

<tr>
	<td>
		<label for="ordering">
			<mos:Call template="tooltip" text="Ordering" tip="Negative floats, positive sinks, zero is default" />
		</label>
	</td>
	<td>
		<input type="text" name="ordering" id="ordering" value="{ITEM_ORDERING}" class="inputbox" maxlength="6" />
	</td>
</tr>
Link just includes the template, for example:

Code: Select all

<mos:link src="newCheckAll" />
Andrew Eddie - Tweet @AndrewEddie
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.

wene
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 203
Joined: Sat Aug 20, 2005 1:40 am
Location: south of France

Re: differences between "call" and "link" tags ?

Post by wene » Fri Dec 09, 2005 5:35 pm

thanks for answering,
i will play with this when i will have time to


Locked

Return to “patTemplate”