You are not logged in.
Pages: 1
I thought it might be down to a change in the way authentication works. No problem: can wait for RC2 to drop before switching this on.
P.S. We just launched http://www.shannontrust.org.uk running on BigTree — has given us so much flexibility during development.
I'm having real trouble getting Google Analytics set up with BigTree. Seems that my Google login isn't accepted. I don't suppose you guys have a step-by-step guide on what I should be doing?
Thanks Tim,
I was thinking about this a bit more, and occurred to me that querying the module tables, as you've mentioned, would be the best solution. I'm thinking that I can even extend the module class to do all the heavy lifting, and just call a single method.
I'm going to play around with this and see how I get on with using the built in getForm() stuff.
Is there any easy way to retrieve the field type for each resource when displaying a module or page? I can't see any obvious way to do it. Reason I want to do this is so that I can use modules for defining forms to appear on the front-end of the site, and want to be able to display different form controls depending on the type of field.
Personally, I think getting access to an author object, and any publication date and state meta data would be the most useful.
I've just referenced this discussion after coming up against the same requirement again, on another project.
In the end, we actually ended up implementing your first suggestion: creating a method on the module class to do an SQL query on the audit table.
I'm just curious to know if there are any plans to make this a bit more elegant for retrieving publishing metadata for all BigTree content?
Thanks! I'd tried json_decode but hadn't include the true parameter.
Hi,
I'm getting a little bit confused when trying to use the "Parser" options on a module view. I want to be able to transform the value of a JSON field (a text field which is of type `name`) but having trouble working out exactly how I should be defining the output value.
Are there any examples I can look at which might give some clues?
Thanks Ben.
I thought I would ask this before I set about writing some custom functionality:
Is it practical to use BigTree's built-in user authentication code to handle public (i.e. non-admin) user logins? It appears from looking at the codebase that the built-in authentication is tied in quite tightly with the admin system and its permissions, so I'm wary about bending it to my will!
My current thinking is that I can create a new `site_users` table and borrow from the addUser() and login() methods. I may even create this as a module, so that admin users can perform actions such as enabling/disabling accounts.
Thanks so much Ben — that's a really comprehensive overview, and sounds really straightforward now you've explained it. Will give it a go!
Hi,
I'm currently looking at how to implement a custom field type, and I'm getting a little bit lost.
Basically, I'm trying to implement a new field type which uses the Redactor WYSIWYG editor as an alternative to the TinyMCE. My guess is that once I've created the new field type in the admin, I then need to do my magic in the files which are created, but I'm a bit unclear as to what each is responsible for, and where my custom JS should live, and the best way to hook it up.
Does anybody have any pointers or advice?
Thanks Tim.
The first option looks quite expensive in terms of SQl queries, and likely to break if you make changes to the table structure in the future.
The second option is something we thought about and might be the route we have to take for the moment.
What would be really nice is for the user to be returned as an object property of the item being retrieved.
Ive' not had much time to look at committing what I've done on this so far, but will try to do so as soon as I can.
One thought which has occurred to me while thinking about use cases for this though: how practical do you think it would be to use related tables for storing the data for this type of field?
The reason I suggest this is because I was looking at using it for adding `Event` instances (so an event could be happening on any number of dates/times). But I'd then want to be doing a query to filter and sort on these `instances` (for a calendar view for example).
M2M fields don't really cut it for this use case, as I can't create them inline, on-the-fly.
I've checked the docs, and had a quick dig around in the code, but can't find what I'm looking for: is there any quick and easy way to display the admin author for a module item?
Great!
I will tidy up what I've done so far and submit a branch with the changes soon. The logic I sued proved to be very simple, simply adding the field type in the meta data and then making a few adjustments to the way the dialogs are displayed.
I've been working on some enhancements to the built-in `Array of Items` field type, providing the ability to define the field types of each field. I started work on this because I wanted to be able to add multiple occurrences of dates and times to an `Event` module.
the changes are quite simple: when setting options on the Array field there is now an option to choose the field type alongside each key-value pair. Then, when adding/editing an item in the array, the appropriate input type is displayed.
It's still a little rough around the edges, but I wondered whether this was functionality you were planning to develop in the future and/or whether you'd like me to contribute what I've done?
I'm curious to know if you guys have any advice on a good way for a small development team to work with BigTree. I'm thinking mainly about how to keep local database instances synced, or whether it's better to have a single, remote development DB.
Also, slightly related to this: is it fairly easy to upgrade a BigTree installation for a project once it's in development?
That all makes perfect sense now. Perhaps it'd be nice to label this in some way so that it's clear what the dropdown is refering to? Or maybe that kind of change could be my first Git contribution...
Thanks so much for this in-depth reply — is going to prove really, really useful in getting things up and running.
When editing module views or module actions, in the Fields edit area, there is a select box on the right-hand side (beside "Add", "Many-to-Many" etc.
It's not quite clear what this should be used for, or how it is populated. An overview of this would be really useful.
Thanks for the info — have had a play around with this and managed to get it working nicely.
Thanks for the pointers — really useful.
Ideally, I'd like to be able to create modules for each type of content (Video, Image Gallery, Post) with specific fields for each. Then, each of those modules will need to reference a Category module.
I think I should be able to do that quite nicely using modules which use M2M relationships (every content type references a common Category module). I think the only tricky thing could be referencing and ordering all of the different content types for a particular category.
I'm curious to know how Many-to-many fields should be configured and used. Any info on this would be really useful — can't find anything in the current documentation.
First of all, quickly wanted to say how impressive Bigtree looks — very elegant and intuitive feel to the design, and hoping that follows through to the code.
I'm starting to evaluate Bigtree to see whether it could be used on a couple of upcoming projects, and just trying to get an idea of how flexible it is to create different types of content, and then have them mixed up. One of the projects we're working on is kind of tumblr-like, with a number of different project pages which can include posts of different types: news, video, image galleries, quotes etc.
Just wondering if you were able to give an indication of how easy this would be to achieve with Bigtree?
Pages: 1