[pmwiki-users] styling within an if statement?

Tamara Temple tamouse.lists at gmail.com
Fri Oct 18 19:43:55 CDT 2013


Yes, it does.

On Oct 18, 2013, at 4:29 PM, Ian MacGregor <ardchoille42 at me.com> wrote:

> This does move the login/logout links to the right, but it also moves the links one line down.
> 
> If, for example:
> 
> link1
> link2
> link3
>>> right<<
> (:if authid:)
> blah blah
> (:else:)
> blah blah
>>> <<
> 
> will result in:
> 
> link1 link2 link3
> --------------------------------------> Login
> 
> Regards,
> Rev. Ian MacGregor
> http://www.ianmacgregor.net
> 
>> On Oct 18, 2013, at 2:20 PM, Tamara Temple <tamouse.lists at gmail.com> wrote:
>> 
>> 
>>> On Oct 18, 2013, at 3:36 PM, Petko Yotov <5ko at 5ko.fr> wrote:
>>> 
>>> Ian MacGregor writes:
>>>> What I would like to do is have the Login/Logout links located at the right of the page, like so:
>>>> 
>>>> (:if authid:)
>>>> [[SiteAdmin/HomePage | Admin]]  
>>>> %right%[[{*$FullName}?action=logout | Logout]]%%
>>>> (:else:)
>>>> %right%[[{*$FullName}?action=login | Login]]%%
>>>> (:ifend:)
>>>> 
>>>> But that doesn't work, and I think it's because of the (:if authid:) statement. Is there any way to do this?
>>> 
>>> The %right% WikiStyle will not work if it is not at the beginning of the first line of the paragraph. Use this instead:
>>> 
>>> (:if authid:)
>>> %rfloat% [[{*$FullName}?action=logout | Logout]]
>>> (:else:)
>>> %rfloat% [[{*$FullName}?action=logout | Logout]]
>>> (:if:)
>>> 
>>> [[SiteAdmin/HomePage | Admin]]
>>> 
>>> %rfloat% will place the text after it floating right and the following paragraph will move up to the left.
>>> 
>>> Petko
>> 
>> This should also work:
>> 
>>>> right<<
>> (:if authid:)
>> blah blah
>> (:else:)
>> blah blah
>> (:ifend:)
>>>> <<
>> 
>> 
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list