rskuipers / rk_typecms Goto Github PK
View Code? Open in Web Editor NEWMagento module, allows you to easily define page types with custom fields/templates for the CMS.
License: MIT License
Magento module, allows you to easily define page types with custom fields/templates for the CMS.
License: MIT License
Since the attributes aren't namespaced, there's a type mismatch when you use the same attribute name in different page types with different attribute types.
The first one will be leading, perhaps we should namespace the attributes or simply throw an exception when the same attribute name with a different type is used.
I prefer the latter.
Appreciate it is a big change, but what about using the database to manage page types and attributes assigned to each page type? Could use an EAV model with an indexer to reduce the number of DB queries if performance is a concern.
Reduces the dependancy of creating another module or modify the config XML to add page types and attributes and would make them all be able to be updated in the admin section.
This would open the module up to more end users in my opinion.
Is there a way to move the custom Fields to the Content Tab instead of the Information Tab?
It's unnecessary and causes issues.
Clever CMS has had yet another name space change and is under Bubble CMS Tree.
This causes a couple of issues:
hasCleverCMS()
always returns falseDude, just to say, your module is amazing !!
Smart, light, and easy to use.
Congrats ! Sincerely :)
We need to implement it so it detects when the type of an attribute changes in the setupAttributes method in app/code/community/RK/TypeCMS/Helper/Data.php
Currently you are able to define a single template to render the content and fields added by TypeCMS.
There may be some instances in which you require more control over the layout of a specific page type. E.g. you may want to force the template to 2column-left
view and add a submenu in the left column for all pages with that type.
To do this the page would require a layout handle adding then using Magento's layout XML in a theme you can manipulate the page layout as a whole.
The only alternative is to create page layouts in an additional module config.xml
like so:
<global>
<page>
<layouts>
<custom_layout translate="label">
<label>Custom Layout Label</label>
<template>page/1column.phtml</template>
<layout_handle>custom_layout_handle</layout_handle>
</custom_layout>
</layouts>
</page>
</global>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.