Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2004-10-25 13:50:12
- davidm
- Member
- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: rsx_frontend_edit: Frontend Edit Link
Real cool plugin, I love it !
THX !!!
.: Retired :.
Offline
Re: rsx_frontend_edit: Frontend Edit Link
Hello,
I am using 2 forms to output articles slightly differently. If I use the tags on one form it works great. If I add the tags to the other form it gives this error….
Warning: Missing argument 2 for rsx_frontend_edit_link() in /home/mysite/pub/textpattern/publish.php(767) : eval()'d code on line 890
Last edited by Martagnan (2004-10-25 14:58:08)
Offline
Re: rsx_frontend_edit: Frontend Edit Link
I’m not sure, the second parameter couldn’t be empty since it is the string that goes between the opening and closing tags. What does your form look like?
Offline
Re: rsx_frontend_edit: Frontend Edit Link
This form feeds the ‘Meanderings’ section of my site…
<img src=“http://www.martagnan.co.uk/meanderings-form.gif” />
…and this form feeds the ‘Incidentals’ section of my site…
<img src=“http://www.martagnan.co.uk/incidentals-form.gif” />
I have removed the rsx_frontend from the second form because thats when I get the error. Its working fine in the first form though? Could it be something to do with sections?
Thanks
PS- I have used images because I cant get code to render on this forum – even with @ symbols surrounding it!!!??
Last edited by Martagnan (2004-10-27 08:04:07)
Offline
Re: rsx_frontend_edit: Frontend Edit Link
If you use the exact same code to display the edit link in both forms it should work. The error you are saying you are getting would result from you doing something like <rsx:front_end_edit />
where there is no $thing
parameter. Make sure you didn’t formate the tags wrong, the way the things get parsed, you can’t put spaces between the colon for example.
Offline
Re: rsx_frontend_edit: Frontend Edit Link
I copy and pasted the tags that were ok and used them on the other section and its fine now… must have been a syntax error… i’m an idiot – sorry! :(
Offline
Re: rsx_frontend_edit: Frontend Edit Link
There are worse things in life. That’s cool then. Usually errors like that are because textpattern is very picky.
Offline
#20 2004-10-31 10:33:15
- hafnius
- Archived Plugin Author
- From: DK
- Registered: 2004-09-02
- Posts: 47
Re: rsx_frontend_edit: Frontend Edit Link
I was wondering if instead of setting a new cookie we can not check for the cookie that txp already sets when we log in to the admin sections. I have checked the code and can see some diff in the content of the two cookies. Is there some reason why this cant work? – it would be niftier i think.
/Hafnius
– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing
Offline
Re: rsx_frontend_edit: Frontend Edit Link
It doesn’t work because it would seem cookies are set against the page you are viewing. So I needed to set a cookie that was associated with ‘/’ instead of ‘/textpattern/’. Does that make sense? I also think it would be niftier to use your login cookie, I just don’t know how.
Offline
Re: rsx_frontend_edit: Frontend Edit Link
I updated the plugin so that it has a default value for the $thing
paramter. This should get rid of an error message that would get displayed if you have your textpattern install set to display error messages.
Offline
Re: rsx_frontend_edit: Frontend Edit Link
Is it just me or did prefix=”“ stop working when I upgraded to RC3?
Offline
Re: rsx_frontend_edit: Frontend Edit Link
I don’t think it should have stopped working. Unless there have been big changes to the way plugins work. You may want to make sure you don’t have any typos in the tag.
Offline