content-management-system

How to remove content from collection and add it to another

时光总嘲笑我的痴心妄想 提交于 2019-12-25 11:54:27
问题 I have couple of providers created with a smartform: ID Title 90 Doctor A 102 Doctor B 10 Doctor C 26 Doctor D 495 Doctor E I have three collections in CMS: ID Title of Collection 12 IM Collection 43 UR Collection 9 EC Collection The following code retrieves the content for the collection which is working for me: ContentManager contentManager = new ContentManager(); ContentCollectionCriteria criteria = new ContentCollectionCriteria(ContentProperty.Id, EkEnumeration.OrderByDirection.Ascending)

How to remove content from collection and add it to another

房东的猫 提交于 2019-12-25 11:53:02
问题 I have couple of providers created with a smartform: ID Title 90 Doctor A 102 Doctor B 10 Doctor C 26 Doctor D 495 Doctor E I have three collections in CMS: ID Title of Collection 12 IM Collection 43 UR Collection 9 EC Collection The following code retrieves the content for the collection which is working for me: ContentManager contentManager = new ContentManager(); ContentCollectionCriteria criteria = new ContentCollectionCriteria(ContentProperty.Id, EkEnumeration.OrderByDirection.Ascending)

How do I show a list of SmartForms in Ektron

我怕爱的太早我们不能终老 提交于 2019-12-25 07:59:59
问题 How do I show a list of items created using a SmartForm in Ektron Version: 9.00 SP3(Build 9.0.0.249)? I created a SmartForm where users can put in details of job positions available. Now I want to display those positions in a list i.e. jobs available. Then when they click on a link it takes them to the details of that job. I have zero experience with Ektron so I hope this isn't a silly question and I need stuff broken down to pretty basic levels. 回答1: EDIT: You can find this and more in-depth

How to implement my own CMS hosted on a remote domain in all my projects?

。_饼干妹妹 提交于 2019-12-25 07:38:16
问题 So, I'm developing my own CMS which dynamically adjusts to the settings I have set on a specific domain. I just developed this whole CMS on my local machine and now facing the problem that I have multiple projects, each on a different domain (same host provider though, don't know if that's relevant?). On my localhost it's no problem because I just point to the specific CMS folder. __ Example: My CMS Files are in a subdirectory of www.mycms.com like www.mycms.com/cms/ and my project ist hosted

Wordpress Custom Pages or Something Else?

随声附和 提交于 2019-12-25 07:24:33
问题 I am creating a website which is not a blog, and I am using wordpress for my CMS - in short I am not even using the wordpress loop. The website will display graphs and data from someone else's API and such but I am stuck on what seems to be the right way to do this, and all the documentation I find is for blogs or very very vague. I want to be able to create pages, using just an import statement not a custom template - since those seem to be for text only, and not the huge php, ajax, mysql

“Undefined property” error in CodeIgniter code

让人想犯罪 __ 提交于 2019-12-25 05:43:50
问题 I am following a TutsPlus "Build a CMS" tutorial for Codeigniter. It includes this bit of code: if (!count($this->db->ar_orderby)) { $this->db->order_by($this->_order_by); } Which results in this message: Undefined property: CI_DB_mysqli_driver::$ar_orderby. Filename: core/MY_Model.php Line Number: 29 How can I fix this error? Here is the code in MY_Model.php : <?php class MY_Model extends CI_Model { protected $_table_name = ''; protected $_primary_key = 'id'; protected $_primary_filter =

How to automatically logout an inactive user in your CMS PHP

浪尽此生 提交于 2019-12-25 03:44:28
问题 I am trying to force log out an inactive user from my CMS. The timeout value is stored in a value called PREF_TIMEOUT in my database. Ive borrowed this code and modified it a little. The code does not seem to be doing anything. Does anyone know of a better method of doing this or can spot what is breaking it? <?php function init() { parent:: init(); self::logoutInactiveUser(); } $timeout = mysql_query("SELECT PREF_TIMEOUT FROM preferences WHERE PREF_ID = '1'"); $result = mysql_fetch_array(

How to add a header area?

六眼飞鱼酱① 提交于 2019-12-25 03:35:30
问题 Please tell me how to add a header area on this page. Photo below. 回答1: Declare any new regions in your THEMENAME.info.yml file. Print your region in page.html.twig. If you declared header: 'Header' then you will print it in page.html.twig like this: {{ header }} After that you can create your custom block and place it in the newly created region. For more details and info go to Drupal 8 Docs. 来源: https://stackoverflow.com/questions/53790860/how-to-add-a-header-area

use PHP login info to access mysql database

回眸只為那壹抹淺笑 提交于 2019-12-25 02:34:41
问题 I have built a custom CMS for updating my website. Normally what I do is, I mention database login info (like username-host-password) to a php file and include that file into all the php script files having database syntax. By doing this I access database through that specific database user. What I am trying to do is to replace that particular database user with the logged in user. More clearly if user John is logged in to the CMS, he will access the database using the username john. And if

TYPO3 Service Unavailable (503) standard error after installing existing project

心已入冬 提交于 2019-12-25 01:36:08
问题 I installed a copy of a TYPO3 project. So, I'm using an existing TYPO3 database. When running the home page of the site, I get the 'standard error': Service Unavailable (503) The page is not configured! [type=0][]. This means that there is no TypoScript object of type PAGE with typeNum=0 configured. More information regarding this error might be available online. which refers to following site: https://wiki.typo3.org/Exception/CMS/1294587217 But when I modify the setup of the template of the