content-management-system

Silverstripe 3.1.x getting values from Parent

筅森魡賤 提交于 2019-12-13 04:53:11
问题 I would like to get a generic function working for getting Data in Template of a Page and if the property is not set, getting it from the Parent or Parents Parent and so on. With generic I mean independent of Relations like db, HasOne, HasMany, ManyMany. Let's say I have this for ManyMany but would like to detect if it's a Object, HasManyList or ManyManyList or a value. Is anything like this built in or how would you go about? function ManyManyUpUntilHit($ComponentName){ $Component = $this-

Detailed documentation about mapping a web templete inside Orchard CMS [closed]

妖精的绣舞 提交于 2019-12-13 04:32:03
问题 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 4 years ago . I found a web template on the net link and I want to allow end-users to edit the website using CMS. I found Orchad CMS, which is based on ASP.Net MVC. But the problem I'm facing is that I didn't find the full documentation on how I can map a web template similar to the one I provide to be managed inside a CMS

Silverstripe DataObjects as Pages Part 2 tutorial- sidebar issue

安稳与你 提交于 2019-12-13 04:21:07
问题 I've been following Silverstripe DataObjects as Pages - Part 2: Using Model Admin and URL Segments to create a product catalogue tutorial on my localhost and running into a sidebar problem. When I use the same method to create a sidebar as tutorial one, an error message shows on my site [User Error] Uncaught Exception: Object->__call(): the method 'categorypages' does not exist on 'Product' This is the code I added to Product.php for sidebar to appear. //Return the Title as a menu title

CMS and store hi-resolution images in generated pdf

痞子三分冷 提交于 2019-12-13 04:18:39
问题 I'm looking for good CMS for publishing software manuals. Requirements: publish manual pages as web pages with thumbnails and shows full resolution after click on image, exporting manual pages to a pdf file with full resolution images instead to thumbnails . I found IMHO best wiki system named Tiki Wiki (https://info.tiki.org/) but when I export to pdf then I gets low resolution thumbnail. 回答1: I solve this problem by very simple Tiki Wiki code modification: Modify lib/wiki-plugins/wikiplugin

loadedcommerce tax display issue

◇◆丶佛笑我妖孽 提交于 2019-12-13 03:58:29
问题 In my installation of loadedcommerce I have it all running and configured as I like it. I have configured the tax as follows: Display Prices with Tax = true On the website = perfect - prices appear Tax Inclusive In emails generated via Direct Debit Payment Process = perfect - prices appear Tax Inclusive In emails generated via Paypal Payment Process - fail - prices appear Tax Exclusive Can anyone advise where the Paypal settings are for tax and pricing? 回答1: If this is a b2b site, this can

How to use a FreeMarker template in a Magnolia App?

你说的曾经没有我的故事 提交于 2019-12-13 03:04:23
问题 I'm using Magnolia 5.4 and have developed an app following the documentation: https://documentation.magnolia-cms.com/display/DOCS54/Apps The app is being rendered correctly in the magnolia shell. Opening the app shows a «Hello World» message as described in the documentation: https://documentation.magnolia-cms.com/display/DOCS54/Programming+an+app#Programminganapp-MainSubApp I've removed the unnecessary code and ended up with this: public class HelloWorldMainSubAppViewImpl implements

Umbraco: Adding Fields to Users / User Types

六月ゝ 毕业季﹏ 提交于 2019-12-12 22:55:42
问题 What's the best way to extend the users area? I want to add a field to the User Types where you must select an Administrator (by User Type) for each particular type. I don't see any way to extend this area, does it have to be done in the source code? 回答1: There is no way to extend a User to add more properties that I"m aware of. You could create a new table in the Umbraco database and then use an XLST Extension or C# class to get the extended properties in a Razor macro or User Control.

Database structure and associations for open-ended data and data types

穿精又带淫゛_ 提交于 2019-12-12 17:45:26
问题 I'm trying to build a custom CMS tool (yes I know - ANOTHER CMS) where the users can create as many nested "nodes" as they want. Example "Nodes": Restaurants, People, Shoes, Continents ... anything. Within each Node, there can be as many sub nodes as needed and so on and so forth. While looking through Wordpress, Drupal... etc etc, I keep seeing tables like "taxonomy", and "terms". This seems like a "normal" thing, but I can't wrap my head around how it should be done or how they're doing it.

Get Languages chosen for publish in publish:end event

隐身守侯 提交于 2019-12-12 14:29:01
问题 I made an event handler for the publish:end event - I'm able to get which item is being published - how do I get the languages the user chose in the publish options? 回答1: Figured this out - actually the publish:end event hits once for every language - and you get get the language that is being published by doing EventArgs[0].Options.Language 来源: https://stackoverflow.com/questions/12698876/get-languages-chosen-for-publish-in-publishend-event

Return to previous page in joomla

只谈情不闲聊 提交于 2019-12-12 14:26:27
问题 I have created my own extension. This extension can be accessed from different components and parts of the website. The problem I have is that there could be a number of different URLs that link to this extension. I have a 'cancel' button and I can't work out how I would get this button to link to the previous URL. Wondering if there is something built into joomla like getPreviousURL? Couldn't find anything. EDIT: I should have said that I still want to be able to run my cancel() method. e.g.