I try to make some changes in editcontent.php with these proposes:
- The permissions for Modify a page gives all access in Modify Pages, include the Options (Page Specific Metadata:, Page Alias:, Active: , ets...) also Content Type: field, Menu Text field... I want to hide all these fields , cause the user, who will be a editor dont need to access them (he can crash something or mess it...).
So, i tried to "hide" them and i did, but with errors on the editcontent.php file.
There is the two core parts of code \or maybe more, i dont know\:
row 539============================
$numberoftabs = count($tabnames);
//$numberoftabs = 1; here i just changed the number of tabs, but when i did that , when i edit some content, the page automatic become Unactive, Unhide in menu and Uncachable.
$showtabs = 1;
if ($numberoftabs == 0)
{
$numberoftabs = 1;
$showtabs = 1;
}
for ($currenttab = 0; $currenttab _c">
:
EditAsArray(false, $currenttab, $adminaccess);
for($i=0;$i
=== //$numberoftabs = 1; here i just changed the number of tabs, but when i did that , when i edit some content, the page automatic become Unactive, Unhide in menu and Uncachable.
row 436 #Get a list of content_types and build the dropdown to select one
///////// Here i tried to remove this whole code, but the when i did that, the submit button for editing becomes unactive
$typesdropdown = '';
$cur_content_type = '';
foreach ($gCms->contenttypes as $onetype)
{
$contentops->LoadContentType($onetype->type);
$type_obj = new $onetype->type;
$typesdropdown .= 'type . '"';
if ($onetype->type == $content_type)
{
$typesdropdown .= ' selected="selected" ';
$cur_content_type = $onetype->type;
}
$typesdropdown .= ">".($type_obj->FriendlyName())."";
}
$typesdropdown .= "";
if (FALSE == empty($error))
{
echo $themeObject->ShowErrors($error);
}
else if ($preview)
{
$tmpfname = createtmpfname($contentobj);
?>
<?php
}
==================
If someone can help, please? Any sugestions?
Editcontent.php custom changes...
Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Return to “Developers Discussion”
Jump to
- Official Boards
- ↳ README FIRST!!!
- ↳ Announcements
- ↳ General Discussion
- Support Boards
- ↳ CMSMS Core
- ↳ Modules/Add-Ons
- ↳ Help Wanted (commercial)
- ↳ Translations
- Community Boards
- ↳ Tips and Tricks
- ↳ CMS Show Off
- ↳ Layout and Design (CSS & HTML)
- ↳ Feature ideas
- ↳ Developers Discussion
- ↳ The Lounge
- International Discussions
- ↳ Czech/Slovak - Česky/Slovensky
- ↳ Danish - Dansk
- ↳ Dutch - Nederlands
- ↳ Aankondigingen
- ↳ Tips en Trucs
- ↳ Vertalingen & Documentatie
- ↳ Hulp gezocht (commercieel)
- ↳ Finnish - Suomi
- ↳ French - Français
- ↳ German - Deutsch
- ↳ BITTE ZUERST LESEN !!!
- ↳ Ankündigungen
- ↳ Installation und Einstellungen
- ↳ Module und Tags
- ↳ Smarty-Tipps und -Tricks
- ↳ Layout und Design
- ↳ Suchmaschinenoptimierung (SEO)
- ↳ HowTo's
- ↳ Übersetzungen
- ↳ Show Off
- ↳ Hilfe gesucht (kommerziell)
- ↳ Stammtisch
- ↳ Hungarian - Magyar
- ↳ Italian - Italiano
- ↳ Moduli/Plugins
- ↳ Lithuanian - Lietuviškai
- ↳ Darbo / bendradarbiavimo pasiūlymai ir paieška
- ↳ Persian / Farsi
- ↳ Polish - Polski
- ↳ Portuguese - Português
- ↳ Russian - русский
- ↳ Предложения и поиск РАБОТЫ
- ↳ Spanish - Español
- ↳ Swedish - Svenska
- Geekmoot Editions
- ↳ Geekmoot 2016
- ↳ Connections and Conversations
- ↳ Geekmoot 2015
- ↳ Geek Moot 2012
- ↳ Locked: Geek Moot 2010
- Old Forums
- ↳ [locked] CMSMS 2.0 Beta
- ↳ Module Developers
- ↳ Closed Issues
- ↳ [locked] Documentation0ld
- ↳ Suggestions, Modifications & Corrections
- ↳ [locked] CMSMS 1.11 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 1.10 Beta
- ↳ Closed Issues
- ↳ [locked] CMSMS 2.2 Beta
- ↳ [locked] CMSMS MLE fork
- ↳ Modules/Addon patchs
- ↳ [locked] Quality Assurance
- ↳ [locked] Accessability and Usability
- ↳ [locked] Documentation
- ↳ Media and presentations about CMSMS
- ↳ [locked] Installation, Setup and Upgrade