Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-08-28 16:02:30
- glenelkins
- Member
- Registered: 2008-08-28
- Posts: 29
confusion
Hi
In the default section code there is this:
<txp:article form=“article_listing” limit=“5” />
Now, what is this actually doing? First i look and thing its going to load a plugin called article, then it loading a form called “article_listing” what is actually happening here, does it run a function called “article” and use the “article_listing” form to create the display
Offline
#2 2008-08-28 16:06:35
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: confusion
Hello again…
does it run a function called “article” and use the “article_listing” form to create the display?
That’s correct. And it uses the article_listing
form to format the display of a maximum of five articles. The <txp:article />
tag is a textpattern built-in, not one that is added via installing plugins.
— Steve
Offline
#3 2008-08-28 16:17:11
- glenelkins
- Member
- Registered: 2008-08-28
- Posts: 29
Re: confusion
Hi
So if i say created a plugin to check user logged in status, i can use a form to create a display like an error message and the function would actually send the info to that form?
I do have an issue though. I create a plugin for this reason, but i cannot seem to access the $_SESSION variables. Since then Iv added <txp:php>session_start()</txp:php> to the very top of the actual Page layout file and put the calls to $_SESSION in there…but I want to be able to access $_SESSION from the plugin…any ideas?
Offline
Offline
Re: confusion
variaas, there isn’t any txp:if_logged_in
tag built-in on TxP.
edit: well, at least, AFAIK, and none is listed on the Textbook.
Last edited by maniqui (2008-08-28 18:57:41)
Offline
#6 2008-08-28 20:55:08
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: confusion
But there is rvm_privileged, which offers
<txp:rvm_if_privileged>
You are logged in!
<txp:else />
You are NOT logged in!
</txp:rvm_if_privileged>
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#7 2008-08-29 08:20:26
- glenelkins
- Member
- Registered: 2008-08-28
- Posts: 29
Re: confusion
hi
this doesnt work for what i want I want to handle the sessions myself in a plugin
Offline
Pages: 1