Jump to content

Extension talk:VarsInSession

Add topic
From mediawiki.org

Hello, I suppose that sessions are depending upon the user environment and that I can't completely control the behavior of my session variables ? Here is what I am trying to do : trace parent-child relationship between pages. If you are on page A and want to create page B with the Createbox extension, I want a link on B that refers back to A. No problem. But sometimes when I test creating new pages from two different parent pages, the name of the previous parent page doesn't get replaced by the new parent page. In other words, the variable doesn't get re-set consistently. It only works for me 80% of the time. I have given up for now and am looking for other solutions. My two "create pages" Create1 and Create2 both had the same set code. I use CreateBoxes on them to create new pages, test01, test02, etc. Sometimes the newly created page has the correct parent page info and sometimes not.

— Preceding unsigned comment added by 80.11.250.81 (talkcontribs)

Examples on usage

[edit]

If you could include some examples on usage I think I could use this extension, but right now i'm either doing it wrong or what I want to do can't be done with this extension. I'm trying to retain the contents of a text box after a form is submitted.

{{#svarset: FullName}}

<html>
Enter your Full Name: <input type="text" value="</html>{{#svarget: FullName}}<html>" name="FullName" />
</html>

thanks,