content-management-system

October CMS | In the controller, create edit button on preview.htm which then links to update.htm with the same ID

不羁的心 提交于 2020-01-25 06:47:31
问题 So what I want to do is, from the backend, click on a list item which then, rather than take you to /mymodel/update/id, it takes you to /mymodel/preview/id. The preview page will then have a button which takes you to /mymodel/update/id which matches the ID as /mymodel/preview/id. I have achieved the first part by changing the config_list.yaml by using 'recordUrl: 'namespace/myplugin/mymodel/preview/:id'.' However, I cannot seem to find a way to make a button which is then aware of the ID of

cms:out escapeXml=“false”: prevent <br> in multi line input

◇◆丶佛笑我妖孽 提交于 2020-01-17 12:39:52
问题 Using cms:out escapeXml="false" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string. In the jsp, the code is: <cms:out nodeDataName="plainHtml" escapeXml="false" /> plainHtml is set with a controlType : edit , type : String . Is it possible to prevent the output of <br> anywhere, where a line break is in the input string? Thanks for your help. 回答1: There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for

cms:out escapeXml=“false”: prevent <br> in multi line input

大憨熊 提交于 2020-01-17 12:39:10
问题 Using cms:out escapeXml="false" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string. In the jsp, the code is: <cms:out nodeDataName="plainHtml" escapeXml="false" /> plainHtml is set with a controlType : edit , type : String . Is it possible to prevent the output of <br> anywhere, where a line break is in the input string? Thanks for your help. 回答1: There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for

Prestashop with smarty_internal_templatebase

限于喜欢 提交于 2020-01-17 07:47:06
问题 PrestaShop 1.6.1.10 PHP 5.5.7 When I turn on debugging in PrestaShop, appear as errors like this, I would fix it, but I do not understand how to fix it. Notice: Undefined index: br in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 34 Notice: Trying to get property of non-object in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 34 Notice: Undefined index: hookPaymentShow in public_html/tools

Prestashop with smarty_internal_templatebase

非 Y 不嫁゛ 提交于 2020-01-17 07:47:01
问题 PrestaShop 1.6.1.10 PHP 5.5.7 When I turn on debugging in PrestaShop, appear as errors like this, I would fix it, but I do not understand how to fix it. Notice: Undefined index: br in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 34 Notice: Trying to get property of non-object in public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 34 Notice: Undefined index: hookPaymentShow in public_html/tools

How to structure this SQL query?

痴心易碎 提交于 2020-01-16 18:37:03
问题 So basically I'm getting notifications of new content on my website. I have 4 tables - articles media updates comments Each table has a set of its own columns (I can include these if anyone wants). There is one distinct column every table has, this is the timestamp column (a big int formatted column with data from the PHP time() function). My solution to getting the last 30 modifications is to select the first 30 rows from these 4 tables ordered by timestamp descending. Here is the query I

How to structure this SQL query?

不羁岁月 提交于 2020-01-16 18:36:09
问题 So basically I'm getting notifications of new content on my website. I have 4 tables - articles media updates comments Each table has a set of its own columns (I can include these if anyone wants). There is one distinct column every table has, this is the timestamp column (a big int formatted column with data from the PHP time() function). My solution to getting the last 30 modifications is to select the first 30 rows from these 4 tables ordered by timestamp descending. Here is the query I

ModX Evo: PHP error in document.parser.class.inc.php

ε祈祈猫儿з 提交于 2020-01-16 12:36:08
问题 So my Evo site stopped working the other day - just got a 500 error. I got my host to check the logs and found this: [error] PHP Fatal error: Cannot redeclare insert_metka() (previously declared in /home/mysite/public_html/manager/includes/document.parser.class.inc.php(790) : eval()'d code:2) in /home/mysite/public_html/manager/includes/document.parser.class.inc.php(790) : eval()'d code on line 12 I have tired commenting out the offending line and removing the entire file to no avail. Does

Magnolia 6.0 custom action implementation

大城市里の小女人 提交于 2020-01-15 05:20:10
问题 I try to implement custom action in actionbar . My implementation is package com.example; import info.magnolia.ui.api.action.Action; import info.magnolia.ui.api.action.ActionExecutionException; import info.magnolia.ui.contentapp.detail.action.AbstractItemActionDefinition; public class MyActionDefinition extends AbstractItemActionDefinition { public MyActionDefinition() { this.setImplementationClass(MyAction.class); } } class MyAction implements Action { @Override public void execute() throws

Shortcode plugins for own custom cms like wordpress shortcode plugins

两盒软妹~` 提交于 2020-01-15 04:01:08
问题 I have created a custom CMS for my own and a plugin system that is working as I expected. Now I want to create plugins based on shortcodes, eg: [gallery attr1=100 attr2="string"] and [mycode title='message' color='#F00']Hello World![/mycode] I want to handle the above mentioned shortcodes in my CMS. Functions will replace shortcodes with HTML and get & set attributes as parameters for mySQL queries or something else. may be regular expressions will help, I am not expert in regular expressions