Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > 1. Macros && 2. Multipole masterpage? View modes: 
User avatar
Member
Member
eagleag - 6/16/2010 3:35:12 AM
   
1. Macros && 2. Multipole masterpage?
Hi,
I would like to insert a macro into visibility in a web part.
The web part is a sidebar on master page. I would like to hide it on some of the pages.
i use this macro:

{%cmscontext.currentdocument.documentname != "Home"%}


none worked. I also tried Management-Services.

how can i do this?
can a site have multipole Master Pages? (using kentico 4.1)

THANKS :)



User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/16/2010 5:47:37 AM
   
RE:1. Macros && 2. Multipole masterpage?
Hi,

Macros are just simple text replacements and not a programming language, so logical operations are not supported. To achieve this, you need to develop custom macro where you will handle the logic operations as you need to.

You can also find some news in macros in version 5.5 in this blog post.

Multiple master pages were not supported in version 4.1, but they are supported in 5.5. Anyway, you can try this approach or this one.

Best regards,
Juraj Ondrus

User avatar
Member
Member
eagleag - 6/16/2010 6:20:54 AM
   
RE:1. Macros && 2. Multipole masterpage?
thanks,

is it possible to use portal engine and create include.
include = creating a template the has 2 webpart. saving it in a folder in the site tree.
Then call the "include" to appear on other pager.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/17/2010 2:58:58 AM
   
RE:1. Macros && 2. Multipole masterpage?
Hi,

I am sorry but I am not getting the meaning and I do not see any connection with this thread. Could you please describe it with more details? Thank you.

Best regards,
Juraj Ondrus

User avatar
Member
Member
eagleag - 6/17/2010 3:04:19 AM
   
RE:1. Macros && 2. Multipole masterpage?
Hi,
Thanks for your replys.
I think I solved my issue.
Have one question regarding webparts.

Some webparts that are on different pages and different templates have the same properties when only one is changed.
example:
About us (page)- Search webpart
Contact (page) - Search webpart

pages are using diff templates.
When i change the properties on SEARCH on one page, it changes the properties of search also on the other pages.

How do I can I know which webparts work this way?
Is there anyway to force this? if I want it to work of other webparts?


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/17/2010 7:54:41 AM
   
RE:1. Macros && 2. Multipole masterpage?
Hi,

If the documents are using one and the same page template, the web part settings are the same for the page template, which means for all documents, which are using this template.

If the page templates are different, then you have to configure the web part on each of these page templates.

Please see Page templates article.

Best regards,
Juraj Ondrus

User avatar
Member
Member
ralph - 7/3/2010 4:23:15 PM
   
RE:1. Macros && 2. Multipole masterpage?
There is a much more efficient technique for achieving this:

1. Create a new document type, called Home Page. This document type has no needs to contain any fields, it can just be a container.

2. Add your new page to the allowed child pages of the ROOT doc type

3. Recreate your home page with this new document type.

4. Now while using the same template then all other pages you can define a web part that is only shown on the document type 'homepage'.

I do the same for special pages like sitemap or search page. It avoids the creating of many templates that would duplicate web part definitions.

User avatar
Member
Member
eagleag - 7/4/2010 2:52:58 AM
   
RE:1. Macros && 2. Multipole masterpage?
THANKS :)

super simple = super good