Keyword modifiers


(Tbaatar) #21

I think you will have to use either news page posting to do this or like you have mentioned metadata.
Also you can use Javascript to hide anything after 100 characters but I think it will be too dirty! :ph34r:


(Nic Hubbard) #22

[quote]
Sorry for not being more specific, I mean the first 100 characters of %asset_contents_raw% in order to display a summary of page contents in an asset list.

[/quote]



Looks like you could use:


    %asset_contents^maxchars:100%


Obviously that would only be in 3.24.1

(Tbaatar) #23

Thats really neat feature. Saves writing/copy and pasting same content.


(Tomlinson) #24

[quote]
I think you will have to use either news page posting to do this or like you have mentioned metadata.

Also you can use Javascript to hide anything after 100 characters but I think it will be too dirty! :ph34r:

[/quote]



Thanks, I had a feeling that would be the case. My client needs this for every page, so I guess that they are going to have to create it as a Metadata field! Roll on 3.24!


(Jaco Roeloffs) #25

We're having trouble with this functionality. In a bodycopy div, the following example works:

    %globals_user_name^uppercase%


Unfortunately the same modifier on a form response [i]doesn't[/i] work:

    %response_43489_q1^uppercase%
.

Just wondering if anyone can confirm this or have any possible solutions. We're trying to use escapequotes on this value, but it simply doesn't work.

(Jaco Roeloffs) #26

Expanding on the previous post - is there any particular reason why they do not work in some situations? It seems somewhat random - for instance, in the group format of an asset listing, they work fine with %parent_name% but break when used with %group_name% - even though both of these keywords would display the exact same thing without the modifier. Stuff like this makes them somewhat frustrating to use, which is annoying, because they should be really useful.


(Rachel Macdonald) #27

Yeah, I logged a bug for %group_name% but got told it would be a feature.