Search found 3479 matches

by velden
Wed Feb 01, 2023 6:13 pm
Forum: CMSMS Core
Topic: Code highlight using Event Manager
Replies: 5
Views: 974

Re: Code highlight using Event Manager

It now works because you save your result to the $params['content'] (via the referring $html variable).
The UDT should not return anything in this case. So

Code: Select all

return $html;
should not be needed

The Event Manager passes a reference to the content (via $params['content']).
by velden
Wed Feb 01, 2023 1:54 pm
Forum: CMSMS Core
Topic: Code highlight using Event Manager
Replies: 5
Views: 974

Re: Code highlight using Event Manager

I suppose you don't want to return the value but save it to $param['content'];
by velden
Fri Jan 27, 2023 11:56 am
Forum: Modules/Add-Ons
Topic: Module Manager Page missing after update
Replies: 2
Views: 1136

Re: Module Manager Page missing after update

Probably one of the modules is causing this behavior. I suspect a CG module You can try to rename the module folders (on the filesystem) E.g. an underscore. _CGBlog _CGExtensions _CGSimpleSmarty _JQueryTools _MenuManager _ThemeManager That will disable the module and probably give you access to the ...
by velden
Wed Jan 25, 2023 7:56 pm
Forum: Modules/Add-Ons
Topic: Formbuilder validation
Replies: 1
Views: 650

Re: Formbuilder validation

This part from the help almost says it all: Validation UDT. Set this for a form, and the UDT will receive all of the form's human-readable results. The UDT should do whatever validation it wants, and return an array with the first value being true or false (indication whether the form validates), an...
by velden
Sun Jan 22, 2023 6:02 pm
Forum: CMSMS Core
Topic: Creating a side Menu with Navigator
Replies: 5
Views: 795

Re: Creating a side Menu with Navigator

I suppose number_of_levels=1
by velden
Sun Jan 22, 2023 3:41 pm
Forum: CMSMS Core
Topic: Creating a side Menu with Navigator
Replies: 5
Views: 795

Re: Creating a side Menu with Navigator

The module's help can be found in Module Manager. For a side menu you probably (also) need the (optional) start_level ="" - This option will have the menu only display items starting at the given level relative to the current page. An easy example would be if you had one menu on the page w...
by velden
Tue Jan 03, 2023 10:15 am
Forum: Dutch - Nederlands
Topic: sites onvindbaar na upgrade PHP naar versie > 8
Replies: 8
Views: 5317

Re: sites onvindbaar na upgrade PHP naar versie > 8

Ik kan me niet vinden in die stelling eerlijk gezegd. Ten eerste: voor zowel MenuManager als Navigator heb je Smarty templates nodig. Wat dat betreft is er weinig veranderd. Out of the box kun je met Navigator en de standaard templates gewoon een navigatie-menu opbouwen. Mogelijk zijn de structuur e...
by velden
Mon Jan 02, 2023 12:59 pm
Forum: Dutch - Nederlands
Topic: sites onvindbaar na upgrade PHP naar versie > 8
Replies: 8
Views: 5317

Re: sites onvindbaar na upgrade PHP naar versie > 8

Smarty-kennis. Net zoals in de templates van MenuManager
by velden
Mon Jan 02, 2023 9:13 am
Forum: Dutch - Nederlands
Topic: sites onvindbaar na upgrade PHP naar versie > 8
Replies: 8
Views: 5317

Re: sites onvindbaar na upgrade PHP naar versie > 8

Het klopt dat de verouderde/deprecated module MenuManager niet PHP 8.x compatible is. Daar moet je dus afscheid van nemen aangezien je hosting provider PHP 7.x op (korte) termijn niet meer zal aanbieden. Navigator is inderdaad de opvolger maar templates zijn niet 1 op 1 over te nemen. Het verschil i...
by velden
Fri Dec 23, 2022 2:23 pm
Forum: CMSMS Core
Topic: Step 2 in cmsms upgrade installer does not happen
Replies: 3
Views: 806

Re: Step 2 in cmsms upgrade installer does not happen

Expanded installer can be downloaded from: https://www.cmsmadesimple.org/downloads/cmsms > cmsms-2.2.16-install.expanded.zip

Extract the zip file and please read the README.TXT first. It explains how to use this installer.
by velden
Sat Nov 12, 2022 11:38 am
Forum: Modules/Add-Ons
Topic: Lise name of uploaded file
Replies: 4
Views: 937

Re: Lise name of uploaded file

That sounds like a much easier way indeed.
by velden
Sat Nov 12, 2022 9:49 am
Forum: Modules/Add-Ons
Topic: Lise name of uploaded file
Replies: 4
Views: 937

Re: Lise name of uploaded file

Yes, should be possible with Events and a UDT. You will need to think it out well of course. For example, every time an editor saves an (existing) item you will need to check if the file and/or category and/or reference have been changed to determine whether you have to do something with the filenam...
by velden
Fri Nov 11, 2022 3:55 pm
Forum: Modules/Add-Ons
Topic: News module custom field document format
Replies: 9
Views: 1810

Re: News module custom field document format

Can you post here the output of:

Code: Select all

...
  {if $field->type == 'file'}
...
  <pre>
    filename: {$field->value}
    print_r:
    {$field->value|pathinfo|print_r} 
  </pre>
...
by velden
Fri Nov 11, 2022 1:08 pm
Forum: Modules/Add-Ons
Topic: News module custom field document format
Replies: 9
Views: 1810

Re: News module custom field document format

Although I think you should stay away from the foreach loop looping over fields I will use it for this example: {if isset($entry->fields)} {foreach from=$entry->fields item='field'} <div> {if $field->type == 'file'} {$pathinfo = $field->value|pathinfo} {$extension = $pathinfo.extension} <a href='{$e...
by velden
Wed Nov 09, 2022 3:36 pm
Forum: Dutch - Nederlands
Topic: Navigator template werkt niet meer met php8.1
Replies: 6
Views: 5834

Re: Navigator template werkt niet meer met php8.1

Hoe is het probleem ontstaan eigenlijk? Je wilt PHP versie 8.1 gaan gebruiken en werd daarom gedwongen om over te stappen van Menu Manager naar Navigator? Of werkte je al met Navigator en werkt het nu niet meer door de upgrade naar versie 8.1? Ik begrijp namelijk niet hoe je ooit met een menu van <d...

Go to advanced search