content-management-system

Mezzanine ImportError when running tests

限于喜欢 提交于 2019-12-11 19:48:09
问题 I have recently upgraded the version of Django from 1.5.5 to 1.6.2 and Mezzanine to 3.0.9. When I run python manage.py test All the tests run without problem. But When I run project specific tests using python manage.py test <project-name> Then I get ImportError. I get that its something to do with Circular Imports. Here is the stack trace. Please help. ====================================================================== ERROR: Failure: ImportError (cannot import name DisplayableAdmin) ----

No route matches in rails 4 Comfortable Mexican Sofa

浪尽此生 提交于 2019-12-11 19:45:08
问题 I am using comfortable mexican sofa CMS. Added the gem to an existing application. Following the documentation from github, after it's installation I placed the route comfy_route :cms_admin, :path => '/cms' as first route and comfy_route :cms_admin, :path => '/cms' as last route. Here's the result shown when I do rake rotues i.e. I see all the routes generated by CMS: Prefix Verb URI Pattern Controller#Action admin_cms GET /great(.:format) admin/cms/base#jump form_blocks_admin_cms_site_page

Showing only the top 5 results

半世苍凉 提交于 2019-12-11 19:35:28
问题 Sorry, I'm rubbish at php but I am willing to learn. I'm creating my website found here and am creating a page called more. Within this page I want to add a list of my top 5 promotions on my site. Each promotion is saved in my mobi database in mysql and I have added a count for each time someone views a particular promotion on my single.php page. So basically. What I need to do is display 5 promotions with the highest number in the "views" field in my mobi database. I currently have these

Highlight Current Page on DYnamic Navigation PHP

穿精又带淫゛_ 提交于 2019-12-11 19:16:37
问题 I get my dynamic navigation menu from the database because I have a CMS, so here's my code: <ul> <?php $result = mysql_query("SELECT id, name, DESCRIPTION FROM menu where VISIBLE='1' ORDER BY `order` ASC") or die(mysql_error()); while($row = mysql_fetch_array($result)){ printf('<li>%s %s </a></li> ', $row['name'],$row['DESCRIPTION']); } ?> to highlight the current page, i have to add this inside the li element how should i do this? Thanks in advance. 回答1: u can try the following code <?php

Uploading umbraco site on server from local host

岁酱吖の 提交于 2019-12-11 18:37:30
问题 I've successfully created site using Umbraco now its time to upload it on hosting server.. i've searched and got one paid product for the same..and i dont want to use it. Has any body tried developing Umbraco site on local and then uploading it on server? If yes then please help me doing that. 回答1: First I run the umbraco install from a local IIS website. Then I setup my visual studio solution for that website (and my souce control). Then I work, until I reach a beta version, then I go

Versionhistory of node disappered after restore parentnode to lower version jackrabbit

筅森魡賤 提交于 2019-12-11 18:08:14
问题 Given the fact i have a versionable node with a versionable subnode. I checkin the first node with 1 subnode for version 1.0. Now i add a new subnode on parentnode (1.1). If i restore parentnode on version 1.0 i can see theres only first checkedin subnode available. When i now wanna restore parent back to version 1.1 and try to get VersionHistory for second subnode ill receive a pathNotfoundException while querying. I did ...restore(absPath, restoreToVersion, false); public static final

How to return the key value from a checkbox list field which automatically updates another field

╄→尐↘猪︶ㄣ 提交于 2019-12-11 17:58:37
问题 I would like it so that when one or more of the options in my checkboxlist has been ticked, the value of said option will then update the amount field. I'm sort of cheating as I'm using the key value to be the price of the field which I would then like to update the amount field with. This already works perfectly with the dropdown fields and this does calculate the amount field depending on what has been selected. As I've had to make the checkboxlist jasonable, the way in which this returns

liferay content management system and use as external content source

徘徊边缘 提交于 2019-12-11 17:58:36
问题 I want to use liferay as web content management system. In my case I want to upload images on liferay and want to access those uploaded images through my program. I am new to liferay. can anyone please guide me or suggest any link through which I can full fill this requirement. thanks 回答1: Go to "site Administration" > "Content" > "Document and Media" > add files there and then copy the url from an input (when you click on an file) specify which liferay version you are using 来源: https:/

The class you are trying to register is not available [TYPO3 8.7.26]

北慕城南 提交于 2019-12-11 17:44:17
问题 I'm installing self created extensions in TYPO3. My composer.json file ar location /var/www/html/typo3 looks like: { "repositories": [{ "type": "composer", "url": "https://composer.typo3.org/" }, { "type": "package", "package": { "name": "Bm/ah-content-api", "version": "0.0.1", "type": "typo3-cms-extension", "source": { "url": "https://user@bitbucket.org/company/ah_config_typo3.git", "type": "git", "reference": "master" }, "autoload": { "psr-4": { "bm\\ah-content-api\\": "typo3conf/ext/ah

Service Unavailable (503) No TypoScript template found

和自甴很熟 提交于 2019-12-11 16:30:28
问题 I tried to install the introduction package in Typo3 cms. But I receive the following error: Service Unavailable (503) No TypoScript template found! 回答1: You might need to include the package into your core template in Typo3. Whenever you are using a new package/extension which having template files, you are needed to added those in your root template. Go to Template Menu in the typo3 backend Select the root page from the treelist on the left side panel (it might be Congratulations). Choose