Hi guys,
I need to set up a place where my client can add an image to the right hand side of a page on multiple pages form one Resource.
Which I have done however they want the flexibility to go to an individual page and add an image which will then override the image from the original single resource. (sorry if that's confusing)
As an example, currently I am using an image TV from a single resource called 'Right Hand Image (280)' then using getResourceField in the template to place the image on whatever page/resource has that template.
<div id="content-right">[[getResourceField? &id=`280` &field=`accounts-rh-img` &processTV=`1`]]</div>
But I want to be able to go to an individual page and add an image there specific to that page and have the image put there from id 280 hidden.
I am sure this can be done with some sort of IF statement and I know about the IF extra but not quite sure how to go about setting this up if anyone could point me in the right direction that would be great.
Cheers
[ed. note: ptron12 last edited this post 12 years, 11 months ago.]
-
☆ A M B ☆
- 24,524 Posts
I would install FastField, then use a TV for the resource to fetch the field from. The TV's default value could be the ID of the resource you usually use, while for those where you want the current resource to have its own image just edit the TV to have its own ID.
Hi sottwell, thank you for the advice I will give it a go.
Cheers