Im not having any problems with "textToLink", "linkToUrl" and "infoBillede". It is only the richtext editor (contentText ) that I cant get to work with recursiv.
I'll try and explain myself again. At my homepage I have an advertisement to be displayed on all pages, but the user must be able to edit the text in the advert on the subpages. If they have not changed the text on the subpage, the text from the frontpages should be placed there insted. There is also an image (picture info = "[$ info image]") and a link in the advert that the user needs to change and it works fine. Is there anyone who can explain why it does not work when I want to use a Rich TextEditor?
What I dont understand is, that it that when I insert text in a text-editor on my frontpage, the text will not be placed on the subpages. But when I insert an Images om my frontpage, the images will be show in the subpages
The macro will be within a template, and the template knows what page it is being call on via the $currentPage parameter.
If I understand correctly all pages needs to display an advert, if the current page you are on (a sub page for example) the admin user has not filled in the details for an advert then you want to display the advert from the level above in the content tree.
Problem with recursive in macro
Hi
Im having problem with my macro. I would like my text field to be recursive.
What I have done so far:
In the macro I have created a parameter, alias = contentText , Type = Text.
In the xslt: <xsl:value-of select="string(/macro/contentText )"/>
I have a document type called="contenttype", Type="Rich text editor"
and in my template:
<umbraco:Macro textToLink="[$tekstTilLinkIReklame]" contentText ="[$contenttype]" infoBillede="[$infoBillede]" linkToUrl="[$linkTilReklame]" Alias="Newsletter" runat="server"></umbraco:Macro>
Im not having any problems with "textToLink", "linkToUrl" and "infoBillede". It is only the richtext editor (contentText ) that I cant get to work with recursiv.
Can anybody help?
Hallo
Can anybody help?
I'll try and explain myself again.
At my homepage I have an advertisement to be displayed on all pages, but the user must be able to edit the text in the advert on the subpages.
If they have not changed the text on the subpage, the text from the frontpages should be placed there insted.
There is also an image (picture info = "[$ info image]") and a link in the advert that the user needs to change and it works fine.
Is there anyone who can explain why it does not work when I want to use a Rich TextEditor?
Hi Kate,
Which version of Umbraco are you using?
I'm not sure I fully understand your issue but you can use the following in your XSLT to get your values in pre 4.5 Umbraco installs
You do not need to pass any values in the macro as far as I can tell.
Basically this says "get me the first node up the tree where the value 'advertText' is not blank.
Then use this value to get the advertImage / advertText and contentText from the same node.
Make sense?
Rich
I´m using Umbraco 4.5 :-)
And I´m new to umbraco so can you help me rewrite it to 4.5 version
What I dont understand is, that it that when I insert text in a text-editor on my frontpage, the text will not be placed on the subpages. But when I insert an Images om my frontpage, the images will be show in the subpages
Hi,
Try this:
Hi Kate,
It's very hard to work out what your actual problem is.
Maybe you could you post a screen shot of your content tree and the paste in XSLT that you are using?
Rich
Sorry, it is not working.
It is propperly me.
In the macro you made a paremeter called "advertText", right?
And when you placed the macro in the template it looks like this
I'm not sure why you need to pass in a parameter.
The macro will be within a template, and the template knows what page it is being call on via the $currentPage parameter.
If I understand correctly all pages needs to display an advert, if the current page you are on (a sub page for example) the admin user has not filled in the details for an advert then you want to display the advert from the level above in the content tree.
Is that correct?
Okay, I will try that
and my xslt:
Yes, you understand my problem correctly :-)
Hi Kate,
Could you post an image of the 'Generic Properties' tab for the 'FitnessCenter' node and also the 'Forside' node/
Rich
Fitness
Forside
I think it is working. Let me just test it
My mistake. Forgot to delete/disabel the parameter in the macro
Thanks for your help
Sorry, it is still not working
I will try to make a better exampel and then I will return :-)
is working on a reply...