Keyword modifier not working


#1

Hi guys,

 

     I have been trying to make this modifier work, but no luck .... Its used in an asset listing .

%asset_contents^append:{asset_url}^append:?SQ_DESIGN_NAME=blank&SQ_PAINT_LAYOUT_NAME=bill%

I know its wrong, but not sure how to fix it ....

 

In that same asset listing, the following produce the correct URL (checked via code commenting) and when I view that URL in a browser, it print some contents ....

%asset_url%?SQ_DESIGN_NAME=blank&SQ_PAINT_LAYOUT_NAME=bill

So basically, I want to use the above URL, and display its contents in an Asset listing.

 

Thanks


(Bart Banda) #2

I'm a bit confused about what you are trying to do, but if you want to use {asset_url} you need to use the ^replace_keywords modifier before it, like so:

 

%asset_contents^replace_keywords:append:{asset_url}%


#3

Thanks for your reply Bart. The above code you provided, prints the URL, not its contents.

 

What I am trying to do is, trying to find a substitute for this code 

<esi:include src="%asset_url%?SQ_DESIGN_NAME=blank&SQ_PAINT_LAYOUT_NAME=dpart" />

using keywords & keyword modifiers, without using ESI include .... Not sure if its even possible ....!


(Peter McLeod) #4

Hi Paul

 

If you are trying to get the content of the asset via the listing (rather than load it in using esi), then just use the standalone keywords: 

 

%asset_contents%  or %asset_contents_raw%  or %asset_file_contents%

 

Thanks

Peter


#5

Hi Peter,

 

           Thanks for your reply. I know I can use 

  • %asset_contents%  or
  • %asset_contents_raw%  or 
  • %asset_file_contents%

But my question is, How do I use the above keywords in conjunction with ?SQ_DESIGN_NAME=blank&SQ_PAINT_LAYOUT_NAME=dpart

 

How do I append the "Design" and "Layout" in the URL when using the above keywords ?


(Peter McLeod) #6

Hi

 

You can apply a paint layout to the contents using:

 

%asset_contents_paint_ %

 

Not sure that you can (or would make sense to) apply a design in this scenario though. If the desigh is just is blank (ie just printing the body copy) then you wouldn't need it anyway.

 

Hope this helps.

 

Thanks

Peter


(Anthony Ponomarenko) #7

You could try using a Nested Container type and pass Additional GET Parameters to it?