content-management-system

Adding bootstrap img-responsive class to wagtail WYSIWYG editor

耗尽温柔 提交于 2019-12-07 12:26:59
问题 I am trying to make it so that when a body image is inserted into a page, that the bootstap class "img-responsive" is added to the image tag? Can anyone tell me how to achieve this? 回答1: You can do this through image formats: http://docs.wagtail.io/en/v0.8.5/core_components/pages/editing_api.html#image-formats-in-the-rich-text-editor The "Full width" / "Left-aligned" / "Right-aligned" options you usually get when inserting an image into the rich text area come from Format objects, which

GRAV subnavigation

[亡魂溺海] 提交于 2019-12-07 07:11:31
问题 I try to make my first site with GRAV CMS. Now in my pages-folder it looks like this: home/default.md about about/seite1/default.md about/seite2/default.md Now, if i put the following code into my html-file, only the main points are showed in the navigation. <nav class="" role="navigation"> <div class=""> <ol class=""> {% for page in pages.children %} {% if page.visible %} {% set current_page = (page.active or page.activeChild) ? 'active' : '' %} <li class="{{ current_page }}"><a href="{{

Plone and Asp.Net Integration

浪子不回头ぞ 提交于 2019-12-07 06:19:47
问题 How to: Make an Asp.Net application to recognize a plone authenticated user (his/her id, roles and any other available data) and vice-versa? Show plone contents inside my asp.net application or show some application-specific data inside plone? Insert plone contents from inside an asp.net application? 回答1: There are a couple of high level approaches: Security: Put a web server in front of both Plone and the ASP.net application and use the auth_tkt cookie format. Apache and nginx support this,

How WordPress permalink system works?

ぐ巨炮叔叔 提交于 2019-12-07 06:10:35
问题 I am a php developer and i am currently developing a CMS/blog system. i want to add a permalink system like WordPress. i am curious about how WordPress parse permalink. For example, how to get data like id and post name from: example.com/id/123/post/example/ In short, I want a system to get id and post name from the url. I want to enable users to change the permalink structure like WordPress using tags like: id/%postid%/post/%postname%/ How do I get data in variables like $id and $post_name

How to link external css in wordpress? [closed]

不羁的心 提交于 2019-12-06 16:15:26
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . The theme i'm using supports only one primary header menu. I'm trying to make another one using another one using external css . How can i link external css in wordpress theme. 回答1: Your best option would be to enqueue the file onto the page you want. In the functions.php file,

How to change theme layout in Opencart?

假如想象 提交于 2019-12-06 16:01:02
Help me on how do i change the layout theme for opencart. I want to have my layout of my site. Thank you. I've tried changing the CSS but it didn't work. HDP First of all, check, are you which is theme layout using in your store? Go to Admin > System > Settings > Edit your store > Store Tab > & then check, you are which template selected here. (default or any other template..) Go to your site source > catalog > view > theme > default(the previously selected template) > stylesheet > & then you can modify stylesheet.css file. (you will changes in stylesheet.css files according to default

How to agnostically link any object/Model from another Django Model?

好久不见. 提交于 2019-12-06 16:00:30
问题 I'm writing a simple CMS based on Django. Most content management systems rely on having a fixed page, on a fixed URL, using a template that has one or many editable regions. To have an editable region, you require a Page. For the system to work out which page, you require the URL. The problem comes when you're no longer dealing with "pages" (be those FlatPages pages, or something else), but rather instances from another Model. For example if I have a Model of products, I may wish to create a

how to run SmartStore.NET in localpc

大憨熊 提交于 2019-12-06 15:55:33
问题 How do I start smartstore.net in Visual Studio localhost? I downloaded the GitHub code and opened project file from SmartStoreNET-2.x\src\SmartStoreNET.sln The download link is: https://github.com/liuzengjun/smartstore 回答1: here some steps for build project 1.open you project/solution in visual studio 13 or you can use visual studio 12 but make sure that it must be fully updated because solution uses the latest version of mvc and all other controls. 2.build SmartStore.Web.Framework. 3.build

Can WordPress handle these functionalities?

假如想象 提交于 2019-12-06 15:35:16
I'm a front-end designer/developer whose weapon of choice for the back-end is WordPress. Up to this point all of my projects involving WordPress were fairly basic and it has handled everything beautifully. I just landed a new client that wants some extra functionality built into his next project and I'm hoping some of you WordPress wizards can give me some good advice while I'm putting together the quote. I'm trying to limit the need for any subcontracting for the back-end functionality, so my question is whether or not WordPress can handle the following (via plugins or light custom

How do we create a Schema at runtime in Mongoose ODM?

给你一囗甜甜゛ 提交于 2019-12-06 15:02:45
问题 It's my understanding that Mongoose Schema's are defined at some point in the initiating stages of a Node app. These will obviously be hard coded, like so: var SomeSchema = new Schema({ some_string:String, some_number:Number }); If I'm creating a CMS whereby the administrator (via a pretty web GUI) could add their own models, with their own pre-defined types (sometimes custom types like e-mail) the app would need to create these Schema's on the fly. Sometimes adding to existing Schemas