/** * Creates the String value for this vfs file value element.<p> * * @param cms the cms context * * @return the String value for this vfs file value element */ private String createStringValue(CmsObject cms) { Attribute enabled = m_element.attribute(CmsXmlPage.ATTRIBUTE_ENABLED); String content = ""; if ((enabled == null) || Boolean.valueOf(enabled.getText()).booleanValue()) { CmsLink link = getLink(cms); if (link != null) { content = link.getUri(); if (cms != null) { content = cms.getRequestContext().removeSiteRoot(link.getUri()); } } } return content; } }
/** * Creates the String value for this vfs file value element.<p> * * @param cms the cms context * * @return the String value for this vfs file value element */ private String createStringValue(CmsObject cms) { Attribute enabled = m_element.attribute(CmsXmlPage.ATTRIBUTE_ENABLED); String content = ""; if ((enabled == null) || Boolean.valueOf(enabled.getText()).booleanValue()) { CmsLink link = getLink(cms); if (link != null) { content = link.getUri(); if (cms != null) { content = cms.getRequestContext().removeSiteRoot(link.getUri()); } } } return content; } }
/** * Creates the String value for this VarLink value element.<p> * * @param cms the current users OpenCms context * * @return the String value for this VarLink value element */ private String createStringValue(CmsObject cms) { Attribute enabled = m_element.attribute(CmsXmlPage.ATTRIBUTE_ENABLED); String content = ""; if ((enabled == null) || Boolean.valueOf(enabled.getText()).booleanValue()) { CmsLink link = getLink(cms); if (link != null) { content = link.getUri(); if (link.isInternal() && (cms != null)) { // remove site root for internal links content = cms.getRequestContext().removeSiteRoot(link.getUri()); } } } return content; } }
/** * Creates the String value for this VarLink value element.<p> * * @param cms the current users OpenCms context * * @return the String value for this VarLink value element */ private String createStringValue(CmsObject cms) { Attribute enabled = m_element.attribute(CmsXmlPage.ATTRIBUTE_ENABLED); String content = ""; if ((enabled == null) || Boolean.valueOf(enabled.getText()).booleanValue()) { CmsLink link = getLink(cms); if (link != null) { content = link.getUri(); if (link.isInternal() && (cms != null)) { // remove site root for internal links content = cms.getRequestContext().removeSiteRoot(link.getUri()); } } } return content; } }
throw new CmsConfigurationException(Messages.get().container( Messages.ERR_READ_FORMATTER_CONFIG_4, new Object[]{link.getUri(), m_niceName, location, "" + m_resourceType}));