Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
This is a lovely plugin! Thank you!
One minor issue: you have to be admin (i.e. user role publisher) to set the cookie.
I’m running a website with a lot of authors, so they cannot use this plugin. Would there be a possibility to integrate the cookie maker somewhere else?
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
The plugin should allow all roles to set the cookie. Try downloading the version 0.1 again. The version didn’t change but there was a problem with early downloads that I fixed at some point.
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
It is not the cookie-maker, but the tab. “Authors” do not have the extension tab and you can only access the extension tab and subtabs, when you are publisher.
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
Uhh I don’t understand; wouldn’t it be just as useful and much simpler for a plugin to use textpattern’s own cookie?
Yes, I have tried turning it off and on.
Offline
#20 2006-02-24 17:56:02
- p_see
- Member
- Registered: 2006-02-24
- Posts: 17
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
Prob with the ID:
The link is well parsed except for the ID. I got something like “http://127.0.0.1/textpattern/textpattern/index.php?event=article&step=edit&ID=” —>The ID number is missing.
(Textpattern 4.0.3)
Offline
#21 2006-02-25 10:58:13
- p_see
- Member
- Registered: 2006-02-24
- Posts: 17
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
Well, I’m a newbie in TextPattern and I have just understood certainly one of the basic elements: the Id is an “article” attribute and it must be called from a “form” not from a “page”. Hope this can help another new comer.
Last edited by p_see (2006-02-28 23:02:42)
Offline
#22 2006-03-11 10:23:46
- p_see
- Member
- Registered: 2006-02-24
- Posts: 17
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I think of a way to delete an article from the write/edit page of each article.
A button after “Reset time to now” …
—> “DELETE”
(I’ve post a request in the features request forum).
I don’t have any idea of the difficulty to do this, it is just a suggestion (honestly I am sure that others already thought of it. Thus that should not be so easy to make…).
It would have sense with the front-editing concept.
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
Rob,
Any chance its not difficult to add a wraptag and wrap class to this?
It would allow me to style it.
Thanks man,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
wouldn’t it be just as useful and much simpler for a plugin to use textpattern’s own cookie?
I was asked today why one needs to set an extra cookie for this and was stumped for an answer, particularly as the “edit” link depends upon you being logged in.
Would it be possible to make it use the ‘remember me on this machine’ cookie txp sets when you’re logged in or not?
BTW: as “The Exit” said, you need to give rights to lower user-levels to show the extension tab. This is no problem, unless you have other extension tab plug-ins which should not be available to all.
TXP Builders – finely-crafted code, design and txp
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
how come it wouldn’t work on my site? I’ve set the cookie and followed the instructions, even checked and rechecked the template and the article form, but it wouldn’t work? =/
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
wordgasm wrote:
how come it wouldn’t work on my site? I’ve set the cookie and followed the instructions, even checked and rechecked the template and the article form, but it wouldn’t work? =/
It would help if you showed us what your relevant template and form code is.
By the way, you did turn the plugin on, right?
Last edited by Destry (2006-07-30 16:21:20)
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
the plugin was and is still turned on, the cookie was set, etc. this is my article form:
<code>
<a href=”<txp:permlink />” title=”<txp:title />”><div id=title><txp:title /></div></a>
<div id=entry><txp:ied_replacer what=“body” /></div>
<div id=comment><txp:rss_article_edit>edit</txp:rss_article_edit> <txp:posted format=”%d.%m.%y | %R” /> | <img src=”/blue/comment.gif”> <txp:comments_invite /></div>
</code>
is there something wrong with it that I don’t know of?? I’m sure I know what I’m doing with my layout, putting the right forms in the right place and such… I’m using txp 4.03 by the way. thanks for helping out :D
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
I see two things worth considering:
- Divitis in affect (use of more divs than necessary). Maybe start by simplifying your code, dropping unneeded divs and using other selectors where appropriate (e.g <code><h1></code>, <code><h2></code>, <code><h3></code>, whatever).
- I think the plugin tag, <code><txp:rss_article_edit> … </txp:rss_article_edit></code> is supposed to be tied to an actual article body that is under Textpattern’s control. I don’t see an actual <code><txp:body /></code> in your code. You’re using another plugin tag for the body and that’s not how the “edit” plugin was designed.
Here’s one idea about redoing that form (CSS not included):
<code><a href=”<txp:permlink />” title=”<txp:title />”><h1><txp:title /></h1></a></code>
<code><txp:body /></code>
<code><div id=“comment”><p><txp:rss_article_edit>edit</txp:rss_article_edit> <txp:posted format=”%d.%m.%y | %R” /> | <img src=”/blue/comment.gif”></code> <code><txp:comments_invite /></p></div></code>
Ultimately you can do what you like with the divs, but I think the <code><txp:body /></code> tag is the root of the real problem here. Just a guess.
Last edited by Destry (2006-07-31 18:38:48)
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
okay thank you very much! can’t believe I overlooked that one.:p
Offline
Re: [plugin] [ORPHAN] rss_article_edit - public site edit link
Sorry, this line should have been written like this…
<code><h1><a href=”<txp:permlink />” title=”<txp:title />”><txp:title /></a></h1></code>
(header tags on the outside of the anchor)
Offline