Right, actually I don't know why but I have the fuel instance in custom field method, but now if I call a method on it, it returns empty, like I tried to call pages->render() method which returned nothing, I had passed TRUE in it. I don't know if…
Okay after understanding how fields work, I replaced body's type to my custom field in My_fuel_layouts.php and it showed the content it was showing previously in ckeditor. I also changed the represents of my custom field to an array same as for cked…
I have loaded the CI and fuel global objects in my custom fields class, but I don't know how to get the key of page being edited, which is used to identify a cms page, and when I try to call $this->fuel->pages->render('saved page key', arra…
Thanks, I think I can use these functions, but I need to call them when my custom field is being rendered so I can put the HTML content inside my custom field, I tried calling this in MY_custom_fields method but $this does not have pages object ther…
Hello @admin, I have not received any reply, please tell me how can I extract the final rendering HTML to my page builder, and also how can I save it back, is there any API that lets me do it? Or how can I extend from the Pages controller to get HTM…
Hello, I was away ans was not able to reply back but I think that I was not clear what I want.
As you can see I have a body field and Page Builder field, I want same data coming in body field inside the Page Builder as I want to replace the e…
Thanks @admin I was able to progress quite far to what I thought. I made a custom field and replaced it with div, added in my layout and now I have it inside create page component. One thing I want to know is how does the Body field gets all content…
So, to resolve the issue that I had been having.
I contacted the admin on mail and he told me that I was missing tags for closing body and html and I was like whaaatt??? I had been like developing this for months and I was missing that much little …
I removed all the content and only printed the value of $pages['page-slug']=array('words' => 'Some words...') defined in _variables/page-slug.php and checked the index.php which says if environment is development then errors are on so didn't did …
This is the layout which I am using in pages
$config['layouts']['nt_basic'] = array( 'fields' => array( 'Header' => array( 'type' => 'fieldset', 'label' => 'Header', 'class' => 'tab' …
I have tried defining a variable using fuel_var and it shows with default value but unless I change my page layout to pre-built ones, I can't see the menu and use it to toggle inline editing. Why my layouts don't show this menu?
I clicked the pencil icon and it showed me menu for changing layout, page, variables in the No Layout page one, but nothing was shown in other pages. Where do I create page variables in CMS? Site Variables?
@admin please see this post, what am I doing wrong, I really want to do it, I had another page with No Layout as Layout and applied html, when I see this page I also see the pencil icon although I have not applied any variables to it for editing.
I have the same problem i.e. not being able to see any pencil icons on page, I did in some pages but don't remember how, I have a about-us page as key and its a CMS page, follows a layout and a variables file named same as key, I have defined an arr…
Hmm... okay. Let's say I create a new entry with the custom fields I have made, this works fine and I can save it correctly, problem occurs when I go to edit the same entry that I just saved, as I can edit or delete the entries I create for a module…
I think I did not explain clearly last time as what I was asking is that if I try your above method, will this bring the tel and fax fields as editable when I want to edit an already saved entry? As right now I am getting all entries editable except…
this is the on_before_save
public function on_before_save($values = array()) { if (isset($values['tel'][0]) && isset($values['tel'][1]) && isset($values['tel'][2]) && isset($values['tel'][3])) { …
public function form_fields($values = array(), $related = array()) { $fields = parent::form_fields($values, $related); // put in your own specific code to manipulate the fields here if (!empty($values)) { $tel…
I tried to edit and save the form as it as and after first save it returns back with error for my custom field value not being there and then they are rendered correctly i.e. they are shown as editable in the form and then when I click save they are…