Did not know about the table mappings. Worked like a charm for FUEL's tables, thanks! It still doesn't help with custom tables though, even having the prefix in the config file. I guess I'll just have to manually get the prefix when defining the tab…
Found one way. Not too pretty but it works.
Go to \fuel\modules\fuel\assets\js\fuel\custom_fields.js
There's a method called createPreview. You'll see the following around line 318 (I'm using v1.1).
var createPreview = function(id){ var $texta…
Do you mean you want to sort list items for a module in the CMS? If you add a column called "precedence" (storing integers) in the database table, it will allow sorting automatically.
By the way, your guide says that PHP v5.1.6+ is required. This should probably be fixed in the upcoming release (or the requirements page updated) as I guess I'm not the only one who's got to deal with an ancient server setup!
Oh God.
It's 5.1.6.
PATHINFO_FILENAME was added in 5.2.0.
Looks like I'm gonna have to contact the sys admin.
I wonder if there's some quick workaround to this.
Edit:
basename($field_value, "." . pathinfo($field_value, PATHINFO_EXTENSION)
Will h…
Been trying to find the culprit to this error today.
pathinfo($field_value, PATHINFO_FILENAME);
This seems to return null. The server runs Linux I think. I haven't tested this on my Windows machine but it shouldn't return null, right?
1. This site is on version 1.1.
2. It's the primary key of the 'legal_acts' table.
Thanks, I'll check out that method once more. Though I have a feeling I'll need to download all the files from the server and do a diff to check if I forgot to confi…
Yes, that's it! I didn't realise it was looking at parent_id's recursively like that, it all makes sense now.
I finally have a working solution, and will deploy the site tonight. Thank you very much!
As for your first question, the ones in Navigat…
Thanks for the reply.
Do you want the menu item to stay at "Home" > "News" > "Archive" for those pages...
Thing is, they aren't pages. The "archive" method in the "News" controller accepts the date as parameters, and retrieves relevant record…
Okay, now I feel really stupid. I was used to the way SilverStripe did this where every language had its own tree.
Works great, thanks for the quick reply Yes, I'm using the latest version.