If/Else Logic You can use if/else logic to display one thing if particular condition applies, and something else if it doesn't. Macro format... %IF_CONTEXT_VALUE_BEGIN(METADATA_VALUE:field name,match value)%Text you want to display if there is a match %IF_CONTEXT_VALUE_ELSE%Text you want to display if there isn't a match %IF_CONTEXT_VALUE_END% For example, if you want to display one message to users who are logged in, and another message to those who aren't, you'd use... %IF_CONTEXT_VALUE_BEGIN(LOGGED_IN,TRUE)%Congratulations, you are logged in. %IF_CONTEXT_VALUE_ELSE%Please log in. %IF_CONTEXT_VALUE_END% Or if you want to display nothing if there is no value in the Cover field, but otherwise to display an image call containing that value... %IF_CONTEXT_VALUE_BEGIN(METADATA_VALUE:Cover,)% %IF_CONTEXT_VALUE_ELSE%img src="%TAG_VALUE_OBJECT(Cover,)%" %IF_CONTEXT_VALUE_END% This is useful if you want to display a cover image for those publications that have one...without generating a broken image call for those that don't. Using Macros to place a tag value from a title when designing a title's content page: You can add any meta tag value from the title containing the content page by placing the macro: %TAG_VALUE_PARENT_OBJECT(tag name,default value if not found)%. This will allow you to place in your title content pages (the PDF content pages) any metadata that is specific to the title the page belongs to. (Built in tag names, below.) Additional Macros %SITE_NAME%: the site's name as defined in admin Settings. %URL_TITLE_INDEX%: link to index of titles on the site starting with 'A'. %URL_TITLE_INDEX_ALL%: link to index of all titles on the site. %URL_AUTHOR_INDEX%: link to index of titles on the site indexed by author names starting with 'A'. %URL_AUTHOR_INDEX_ALL%: link to index of all titles on the site indexed by author names. %URL_SITE_ADMIN%: link to site's admin area. %URL_SITE_RSS%: link to site's RSS feed. %URL_SITE_USER_INFO%: link to current authenticated users information page. %URL_SITE_HOME%: link to site's homepage. %URL_CONTACT_US%: link to site's "contact us" page. %URL_SITE_INFO_TOS%: link to site's terms of service page. %URL_SITE_INFO_PP%: link to site's privacy policy page.
Previous Page Next Page