first of all-> I really love cmsms and i have many happy clients
Well, my actual project is really complex (at least for me) and there is a point, where my "customizing of cmsms module bricks" isn`t enough.
I`m using the FEU module (+SR), so that logged-in users (XD) can write news for specific categories. News, on my webpage, is an equivalent for content blocks (Templates for Reclame, Articles, Slider Content etc.).
But there has also to be a meta regular-user level ( for my client) where really all settings can be done. His wish is to reorder articles (so e.g. that a specific reclame is shown on top). For that I want to use the same "light-weight" solution like it`s done in the admin - category tab, where you can click on that small button to reorder cats.
I found a template named admin_reorder_cat.tpl , an action
action.admin_reorder_cat.tpl and the admin template for the articlelist articlelist.tpl.
My idea, via module_custom, is to call an action called action.admin_reorder_articles.tpl, based on admin_reorder_articles.tpl in modified articlelist.tpl.
What I think to know so far, is that the action action.admin_reorder_cat.tpl changes/ switches the id`s of the categories by rewriting their`s databank id-values.
My problem is, that news articles are saved differently from categories in the db, and i do not want to lost the connection between content and id neither the cmsms engine not to handle about so many news. There is also no "parent"-/"child"-relation between the articles, so that each Article only has to be treaten as simple list-element.
My question: Is there a way to do this?
articlelist.tpl:
Code: Select all
<div class="row">
<div class="pageoptions half" style="margin-top: 8px;">
<a id="toggle_filter" {if $curcategory != ''} style="font-weight: bold; color: green;"{/if}>{admin_icon icon='view.gif' alt=$mod->Lang('viewfilter')} {if $curcategory != ''}*{/if}{$mod->Lang('viewfilter')}</a>
{if isset($addlink)} {$addlink}{/if}
{if $itemcount > 1}<a href="{cms_action_url action='admin_reorder_articles'}" title="{$mod->Lang('reorder')}">{admin_icon icon='reorder.gif'} {$mod->Lang('reorder')}</a>{/if}
</div>
</div>
Anyone ideas?
Thanks in advance.
Code: Select all
----------------------------------------------
Cms Version: 2.1.4
Installed Modules:
AdminSearch: 1.0.1
CGExtensions: 1.53.10
CGSimpleSmarty: 2.1.2
CGUserDirectory: 1.5
CMSContentManager: 1.1
CMSMailer: 6.2.14
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.4
FrontEndUsers: 2.0.7
Gallery: 2.1.6
MicroTiny: 2.0.3
ModuleManager: 2.0.2
Navigator: 1.0.3
News: 2.50.5
Search: 1.50.2
SelfRegistration: 1.9.6
Config Information:
php_memory_limit:
max_upload_size: 256000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/Berlin
permissive_smarty: false
Php Information:
phpversion: 7.0.10
md5_function: An (Ja)
json_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_ALL: 32767
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 192
register_globals: Aus (Nein)
output_buffering: 4096
disable_functions: exec, system, shell_exec, popen, pclose, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, show_source, escapeshellcmd, escapeshellarg
open_basedir: /home/xxx/stats
test_remote_url: Erfolgreich abgeschlossen
file_uploads: An (Ja)
post_max_size: 260M
upload_max_filesize: 256M
session_save_path: Keine Prüfung, da eine „open basedir“-Beschränkung aktiviert ist
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)
check_ini_set: An (Ja)
curl: An
Performance Information:
allow_browser_cache: Aus (Nein)
browser_cache_expiry: 60
php_opcache: Aus (Nein)
smarty_cache: Aus (Nein)
smarty_compilecheck: Aus (Nein)
smarty_cache_udt: Aus (Nein)
auto_clear_cache_age: An (Ja)
Server Information:
Server Software: Apache/2.4.10 (Debian)
Server Api: cgi-fcgi
Server Os: Linux 3.16.0-4-amd64 An x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.50
Server Db Grants: Es konnte keine „GRANT ALL“-Berechtigung gefunden werden. Dies kann bedeuten, dass Sie bei der Installation oder beim Entfernen von Modulen, oder sogar beim Hinzufügen und Löschen von Elementen, einschließlich Seiten, Probleme haben könnten.
Permission Information:
tmp: /home/xxx/tmp (0775)
tmp_cache: /home/xxx/tmp/cache (0775)
templates_c: /home/xxx/tmp/templates_c (0775)
modules: /home/xxx/modules (0775)
uploads: /home/xxx/uploads (0775)
Maske zum Erstellen von Dateien (umask): /home/xxx/tmp/cache (0775)
config_file: 0444
----------------------------------------------