Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-01 07:14:59

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,615
GitHub Twitter

A new tag txp:session

What do you think about a new tag to create easily some sessions into txp?
for example <txp:session name=”“ path=”“ time=”“ etc. etc. />


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#2 2007-05-01 09:28:48

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: A new tag txp:session

If you could describe some practical uses for this, it might be helpful…

I don’t understand how this could be used, or useful.

Offline

#3 2007-05-01 15:05:43

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: A new tag txp:session

What do you mean by “session” ?

Offline

#4 2007-05-01 16:01:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: A new tag txp:session

Sessions is what I believe he’s referring to. I don’t see where lots of people would want this to put it into the core. A plugin, sure.

Offline

#5 2007-05-02 09:28:55

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,615
GitHub Twitter

Re: A new tag txp:session

Mary, tks for your explanation with your link.
I understand your position about the core development and the use by the great number.
Have a good day.
Cheers,


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#6 2007-05-02 22:46:42

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: A new tag txp:session

I know what a session is, but I don’t understand what your example tag would do.


Alex

Offline

#7 2007-05-03 10:08:50

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,615
GitHub Twitter

Re: A new tag txp:session

Hi Zem this suggest tag would be used for some switchers for exemple :
  • a language switcher ;
  • a styles switcher.
    I’m working into a txp site where I take some informations from pages to pages and fill it into a zem_contact formmailer.
    So I made a php session for my purpose, and I thought it’ll be funny if this kind of php session could be used with a txp core tag.

Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#8 2007-05-03 22:27:27

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: A new tag txp:session

So what would the result or output of this tag be? -

<txp:session name=”“ path=”“ time=”“ etc. etc. />

I can see the sense in having some PHP library functions to support sessions in the core, for use by plugins and so on. But I don’t quite follow how you’d use them directly from a Textpattern tag.


Alex

Offline

Board footer

Powered by FluxBB