octobercms

How Can I install OctoberCMS with PHP Version 5.x?

元气小坏坏 提交于 2019-12-04 04:42:08
问题 I have Windows 10, Xampp installed with PHP Version 5.x and I want to install OctoberCMS with Installation wizard https://octobercms.com/docs/setup/installation but I noticed that OctoberCMS requires PHP 7.0 or higher to achieve this and I have version 5.x . So How can I install OctoberCMS with PHP Version 5.x ? 回答1: OK Guys, Eventually I have come up with the solution to install OctoberCMS with PHP Version 5.x. Remember, these steps can be varied based on your operating system and the things

Static page dropdown within static page in OctoberCMS

可紊 提交于 2019-12-02 11:30:37
问题 I have a template with a slideshow in it. Each slide consists of: Image Caption A paragraph of text Button For the first 3 items, I have set up the following in my template: {repeater name="slideshow" prompt="Add another slide" tab="Slideshow"} {variable name="image" label="Image" type="mediafinder" mode="image"}{/variable} {variable name="caption" type="text" label="Caption"}Caption{/variable} {variable name="body" type="textarea" label="Body"}Body{/variable} {/repeater} However, I'm a

Static page dropdown within static page in OctoberCMS

早过忘川 提交于 2019-12-02 07:01:06
I have a template with a slideshow in it. Each slide consists of: Image Caption A paragraph of text Button For the first 3 items, I have set up the following in my template: {repeater name="slideshow" prompt="Add another slide" tab="Slideshow"} {variable name="image" label="Image" type="mediafinder" mode="image"}{/variable} {variable name="caption" type="text" label="Caption"}Caption{/variable} {variable name="body" type="textarea" label="Body"}Body{/variable} {/repeater} However, I'm a little stuck about what field type to use for the button, which needs to link to a static page within the

OctoberCMS Builder plugin, uploading file and storing in database

寵の児 提交于 2019-12-02 03:07:58
问题 I am new to OctoberCMS and i am trying to create one plugin using builder plugin itself which OctoberCMS provides OctoberCMS Builder Plugin called something like " Social Links ", everything working fine expect i am unable to understand the logic of uploading file to any directory and storing that name to my database table's particular field. My table's field name is " social_logo " in which i am trying to store the file name which will be uploaded. I am able to upload file to default

Create API (Web Service) in OctoberCMS

微笑、不失礼 提交于 2019-12-02 00:53:31
I am new to OctoberCMS and i found it very good CMS indeed. I am creating 2 projects in my local server. One is in Cakephp ( http://localhost/5p_group/ ) and the other is in OctoberCMS ( http://localhost/5p_front/ ) . I am using Static Pages plugin in my OctoberCMS project ( http://localhost/5p_front/ ) and i have created header and footer menus using Static Pages Plugin in it which works fine in my October Project at front end as i am able to display header and footer menus respectively. I have also created my own plugin using builder plugin and i am also able to display data in my OctoberCMS

OctoberCMS Builder plugin, uploading file and storing in database

南笙酒味 提交于 2019-12-02 00:04:32
I am new to OctoberCMS and i am trying to create one plugin using builder plugin itself which OctoberCMS provides OctoberCMS Builder Plugin called something like " Social Links ", everything working fine expect i am unable to understand the logic of uploading file to any directory and storing that name to my database table's particular field. My table's field name is " social_logo " in which i am trying to store the file name which will be uploaded. I am able to upload file to default directory at the moment whichever OctoberCMS generating with the file i am uploading. But the thing is i am

OctoberCMS How to Override Users Plugin onRegister() Function?

随声附和 提交于 2019-12-01 10:29:51
I'm using OctoberCMS based on Laravel. I'm trying to override the Users Plugin onRegister() function. A previous answer helped me extend the plugin. I want to restrict Usernames to alphanumeric only with alpha_dash and limit to 50 characters. The original function in Account.php public function onRegister() { ... if ($this->loginAttribute() == UserSettings::LOGIN_USERNAME) { $rules['username'] = 'required|between:2,255'; } My Override Users Events docs https://github.com/rainlab/user-plugin#events public function boot() { \RainLab\User\Models\User::extend(function($model) { $model->bindEvent(