content-management-system

Drupal theme functions workflow in module

邮差的信 提交于 2019-12-22 01:34:37
问题 I am a bit newbie in Drupal theming and I can't get one detail in Forum modules theming. forum.module file contains forum_theme function that controls how this module is themed and has this line function forum_theme() { ...... 'forum_list' => array( 'template' => 'forum-list', 'arguments' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL), ), I also see forum-list.tpl.php file in forum directory, so I start to wonder when this file is called and where it gets data from, but all I

Django CMS which is the best? [closed]

空扰寡人 提交于 2019-12-21 22:43:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I read Djangos cms comparison page and it seems http://www.django-cms.org/ may be what I was looking for. Any experience with that?

Rails engine and devise

六眼飞鱼酱① 提交于 2019-12-21 21:52:54
问题 I have a Rails Engine, where I want to use Devise. I installed devise like normal following this guide. I added this in my engine devise.rb: Devise.setup do |config| config.router_name = :cms_user end I added this in my routes file: Cms::User::Engine.routes.draw do devise_for :users, { class_name: 'Cms::User', module: :devise } end I added this in my routes: devise_for :users, { class_name: 'Cms::User', module: :devise } However I keep getting this error: undefined method 'cms_user' What am I

Search products in a specific category

不羁的心 提交于 2019-12-21 21:44:10
问题 I am trying to extend the default behaviour of the search mechanism provided by the default module blocksearch in Prestashop 1.6.0.6. I added to the default form a select input returning categories. Everything is working in both controller and view sides. The whole form is sending the correct parameter to the SearchController . But, in Model, I still don't know what are the changes to apply on Search.php entity so that the method find returns products that belong to the specified category. I

Magento, passing product name to contact form

白昼怎懂夜的黑 提交于 2019-12-21 20:38:50
问题 Hello from Magento beginer,i'm poor in knowledge of terms and names but i will try hard to explain this as much clear as i can. I'm currently working on configuration of Magento Contact Form to be able to collect some data from users on Product View Page . To be more interesting, the form will have also to send some data about the product on which page admin puts it, concretely Product name Not all products will have this form, only products that are available for supply in different

PHP class not found [closed]

…衆ロ難τιáo~ 提交于 2019-12-21 04:24:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I solved this question my own. The filename was wrong lolz. Hello everyone! I'm building a CMS like Drupal and Joomla. I'm working on the module feature (plugins), and I got the following error: Fatal error: Class 'settings' not found in C:\wamp\www\SYSTEM\view.php on line 22 Here is my code: start.php <?php /

Event-driven CMS - advantages and disadvantages

房东的猫 提交于 2019-12-21 03:52:35
问题 I'm trying to identify some of the pros and cons of having a CMS that is event driven. Event driven is not uncommon. You see it in many scripting languages like Actionscript, javascript, jquery that involve a client. How about in a CMS where the events and their responses happen on the server. What advantages or disadvantages might this approach have, and what other approaches are there that people may prefer more. P.S. Please note that I use Actionscript, JQ, and JS as an example only. You

CMS: store custom pages as files or in MySQL database?

点点圈 提交于 2019-12-20 23:31:41
问题 I am creating a custom CMS in PHP (written from scratch) and want to know whether I should store user created pages as files or in a MySQL database. The content is all HTML code, at least for now. I cannot decide which to do as writing files with php seems like a security risk, and retrieving file contents from MySQL on every page load feels wrong (and could be a performance issue?). I also have custom pages coded by me for a blog, etc. These contain PHP code but do not need to be modified by

CMS: store custom pages as files or in MySQL database?

牧云@^-^@ 提交于 2019-12-20 23:30:51
问题 I am creating a custom CMS in PHP (written from scratch) and want to know whether I should store user created pages as files or in a MySQL database. The content is all HTML code, at least for now. I cannot decide which to do as writing files with php seems like a security risk, and retrieving file contents from MySQL on every page load feels wrong (and could be a performance issue?). I also have custom pages coded by me for a blog, etc. These contain PHP code but do not need to be modified by

Sitecore Insert rules to ensure at most (1) children of a certain type

帅比萌擦擦* 提交于 2019-12-20 14:45:10
问题 Is there way in sitecore to ensure that a certain type of item can only have 1 child of a certain type of item? I'm reading the rules engine cookbook, but I'm not getting much details. 回答1: One of the sites I worked on had a requirement that no more than 6 child items could exist below a certain item type. We considered using an insert option rule, but decided to abandon the idea because it did not prevent copying, moving, or duplicating items. Instead we decided to extend the item:created