#foswiki 2014-07-21,Mon

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
RiskRewardHi, anyone have any experience with the PatternSkin CSS? [00:17]
................. (idle for 1h20mn)
Hi, anyone have any experience with the PatternSkin CSS?
Hi there, is anyone watching? I've got a couple of quick questions if you have a moment?
[01:37]
................................. (idle for 2h42mn)
***gac410 has left [04:23]
............ (idle for 56mn)
ChanServ sets mode: +o CDot [05:19]
...................................................... (idle for 4h29mn)
ChanServ sets mode: +o CDot [09:48]
.................. (idle for 1h29mn)
Colas has quit IRC (Ping timeout: 245 seconds) [11:17]
GuilainC has quit IRC (Remote host closed the connection) [11:27]
......... (idle for 41mn)
ChanServ sets mode: +o gac410 [12:08]
gac410Hi all, Reminder, Foswiki Release meeting in 35 minutes. [12:15]
........ (idle for 35mn)
Hi all ... please join the release meeting on #foswiki-release [12:50]
Release meeting now starting in #foswiki-release ... [13:03]
................................... (idle for 2h52mn)
pylearnerfor template creation in the wiki I was wondering if there was a wiki way when creating a template have a form field and a submit button one could enter entries in the form and hit submit and it would create the wiki page off the template [15:55]
Tarbox1I've done it. [15:56]
pylearnercan you please show me or give me a sample of what you did [15:56]
Tarbox1Trying to find it. [15:57]
pylearneri know templates are mypageTemplate [15:57]
Tarbox1Ah.
There's an OSS contrib that's just an example of how to create a bug reporting system in foswiki.
I mined it for examples.
That's probably faster than any lecture I could give.
http://foswiki.org/Extensions/OpenSourceProjectInAWebContrib
[15:58]
pylearnerok
thanks
[16:00]
gac410Hi all. Release Meeting minutest posted here: http://foswiki.org/Development/ReleaseMeeting01x02_20140721
next meeting 2 weeks - Monday Aug 4th, 1300Z
[16:11]
***gac410 changes topic to: Download Foswiki 1.1.9: http://foswiki.org/Download/FoswikiRelease01x01x09 -- Today's IRC Logs: http://irclogs.foswiki.org/bin/irclogger_log/foswiki -- Foswiki 1.2 Release Meeting, Monday 4 August, 1300Z See http://foswiki.org/Development/ReleaseMeetings [16:12]
.... (idle for 19mn)
pylearnerhow can i program and contribute to this project I can code in perl and python
like is there a something that needs work or a project manager that can assign something to work on
or a maintainer i guess
[16:31]
..................... (idle for 1h42mn)
gac410pylearner: hi! we don't have a formal manager to assign things to work on,
It's more whatever scratches an itch. Though there is a list of tasks we are trying to work through for the 1.2.0 release So help on them would be appreciated.
see http://foswiki.org/Development/DevelopersBible which has links to "GettingStarted" and other topics that discuss the foswiki development process
First thing is to register on Foswiki.org, Then see http://foswiki.org/Development/RequestAccessToSubversion to get added as a developer.
Note however that we are trying to get migrated onto Git, and will abandon subversion, *hopefully* within the next few weeks
[18:13]
pylearnergac410 sounds cool
I will look into it in my spare time
[18:26]
gac410We are pretty welcoming I hope, and everyone has to start somewhere. You missed our bi-weekly release meeting earlier today. Next meeting is Monday 8/4 1300Z That's another way to pick up on what needs to be done.
What timezone are you in
[18:27]
pylearnerI know I asked this earlier, but I am going to have to ask again I am reading through the documents that was linked earlier but I am still having difficulty getting a myTemplate page to have a form field and when submitting have it create a wiki page and the form fields pass variables to the page that is going to be written and have it fill text in for that page
gac410 thanks sounds cool I am a family man with a full time job, but I have used foswiki since it first forked
so would like to help out
[18:28]
gac410hm. The RequestAccessToSubversion page I mentioned above does someething like that.
So does the task creator topic on f.o http://foswiki.org/Tasks/CreateNewTask?raw=on
[18:31]
***ColasHome has quit IRC (Remote host closed the connection) [18:37]
....... (idle for 34mn)
pylearnergac410 I am pretty sure for what i want to do I am going to have to code a cgi script [19:11]
.......... (idle for 45mn)
may not or maybe im not seeing it is there an easier wiki way to pass field entries in as variables to a template page and after the entries call that template page and fill in all the entries for that page creating the new topic. I guess the form would have to use the create new topic button and one of the fields be the entry for create new topic, but i need to call the tempalate and have the form fields passed to the templa
te page
if someone could provide a small example i went to the pages but i dont see where any are really fully doing what i am trying to accomplish
[19:56]
Tarbox1I'm not sure I understood that.
What are you trying to do?
[19:57]
pylearnertarbox1 have a form with entries, have a submit button for the form that will create a new topic pull data from the Template but based on the submission create the wiki page [20:00]
Tarbox1That sounds like how the examples work. What's not right? [20:01]
pylearnerTarbox1, can you show me in the example what code demonstrates what I am trying to do
because I am not seeing it
[20:08]
Tarbox1http://www.lavrsen.dk/foswiki/bin/view/Application/OSS/BugReports is a form you fill out to create a bug report.
Actually, hold on, it just references OSS/CreateBugReport
Buried on that page is: <input type="hidden" name="templatetopic" value="BugReportTemplate" />
If you look at OSS/BugReportTemplate, you can see that some of the variables passed by the form in CreateBugReport show up as %VARIABLES% on the template.
[20:10]
***VerboEse has quit IRC (Quit: Serverwechsel) [20:14]
Tarbox1So it's a two part process, you need the form, which provides the values of the variables, and you need the template, which shows where those values get placed.
The form passes the template its referencing and all the values it needs to the edit script as a post operation. Then the edit script puts it all together and creates the page.
[20:15]
pylearnerTarbox1 thanks I will try to go back and review more
do forms have to be called ending in the word Form ?
[20:20]
Tarbox1On our wiki we've gone one step further. The templatetopic is just an %INCLUDE of a master topic. When we edit the master, all pages sharing that template change with it.
No.
You can call them whatever.
Shoot, you don't even have to use a form, if you have some other way of making the final post operation.
Although watch out for the XSS protection. I've never tried something like that.
[20:21]
pylearnerok
I will look at those two pages to see how it is done
[20:24]
Tarbox1Try this: http://foswiki.org/System/CommandAndCGIScripts#A_61edit_61
Template topics are just a feature of the edit script.
[20:30]
pylearnerTarbox1 going there now [20:37]
Tarbox1You can see the parts of the CreateBugReport topic that are standard parameters to the edit script, and the parts of the form that are parameters passed on to BugReportTemplate [20:38]
pylearnerI think but im not sure
the parameters that are parts of the BugReportTemplate is where I am messed up at
i think it would be the %wordsinpercent%
[20:51]
Tarbox1Hrm.
Seems I lied to you.
I think you're looking for %URLPARAM{"variablename"}%
[20:52]
pylearnerI definitely want to do this the wiki best way i know i could just write a cgi script and be done
but i want to empower users that can't code to do this
[20:53]
Tarbox1So if on your form you have <input type="hidden" name="myparameter" value="myvalue" /> then on the template topic you use %URLPARAM{"myparameter"}% to pull myvalue out again [20:55]
pylearnerTarbox1 if you know the wiki way to pass variables to a template page and also specify a new page not off of time stamp variables that is what I am trying to do
like topic name = <text field>
project name = <text field>
submit button
[20:55]
Tarbox1Well you have to use html for the form. [20:56]
pylearnercreates new page called whatever was typed from the text field on topic name param
creates the new topic off the template page and all instances of variable %projectname% or ever how you denote it $project_name for the specified template will take the entry of project name field
if I had that small example I am pretty much home free
on what I am trying to accomplish
[20:57]
Tarbox1working on it, one second. [20:58]
pylearnercool you are my hero
just paste to a pastebin
[20:58]
Tarbox1Here's your form:
<form name="templateExample" action="%SCRIPTURL{"edit"}%/TargetWeb/" method="post">
<input type="text" name="TopicTitle" size="70" />
<input type="text" name=ProjectName" size="70" />
<input type="hidden" name="templatetopic" value="MyTemplate" />
<input type="submit" value="Create topic" />
There are a bunch of required fields for the edit script you're going to have to look up and fill out, probably with type="hidden"s
but that's the thumbnail.
Now you have TargetWeb/MyTemplate.
TopicTitle is a standard parameter of the edit script, it's not going to get passed on. That's just how titles are specified for the edit script.
But then you have:
Stuff and things and oh btw %URLPARAM{"ProjectName"}% .
That pulls in the project name that the form specifies.
[20:59]
pylearneroh so on the template side have %URLPARAM{"ProjectName"}% [21:03]
Tarbox1yeah
Sorry I lied to you earlier.
Was working from memory when I should not have.
[21:03]
pylearnerok finally it took me a while sometimes I am slow but everything just clicked
its fine man this is a big help to me
so what will the page be called the title doesn't come in to play for the naming of the wiki topic
[21:03]
Tarbox1ah here we go.
<input type="text" name="topic" class="foswikiInputField" />
That's the actual title of the topic.
TopicTitle is ... something similar but not the same.
[21:07]
pylearnerbut you have to have TopicTitle to call the edit script [21:14]
Tarbox1Do you? Haven't played with it. It's the display title of the topic.
So while the topic is YourWikiWord, it can show up as Ye Mighty Wiki Word on the page by setting the topictitle.
[21:14]
pylearneri havent either
ohhh
ok
so you need at least the <input type="text" name="topic" class="foswikiInputField" /> though in order for the topic to be created
[21:15]
Tarbox1well for the sake of being thorough, that's one way. The other way is for the form to submit to %SCRIPTURL{"edit"}%/Web/TopicName instead of to just %SCRIPTURL{"edit"}%/Web
Of course, that way you can't actually change the name of the topic being created, so... just being thorough.
[21:17]
pylearnerthanks
makes sense on the second explaination
ya I think I will have to manually do the title part but will need the topic naming for sure
im going to try this and i will feed back to you here in a minute
[21:18]
....... (idle for 31mn)
Tarbox1 mission accomplished that does exactly what I was wanting to do
thanks man!
[21:51]
Tarbox1np
Glad to help.
[21:53]
..... (idle for 23mn)
pylearnerTarbox1 one slight problem having difficulty getting a textarea working right
it will just display as a text box
[22:16]
..... (idle for 21mn)
nvm i think i got it [22:38]
.......... (idle for 47mn)
***ChanServ sets mode: +o pharvey [23:25]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)