#1 Re: Developer Help » Google Analytics » November 28, 2012 6:55am

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.

#2 Developer Help » Google Analytics » November 27, 2012 9:34am

philp
Replies: 3

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?

#3 Re: Developer Help » Retrieving a field type on front-end » November 15, 2012 11:45am

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.

#4 Developer Help » Retrieving a field type on front-end » November 15, 2012 9:49am

philp
Replies: 3

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.

#5 Re: Developer Help » Displaying an admin author » October 25, 2012 10:38am

Personally, I think getting access to an author object, and any publication date and state meta data would be the most useful.

#6 Re: Developer Help » Displaying an admin author » October 25, 2012 4:44am

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?

#7 Re: Developer Help » Transforming field values with the parser » October 25, 2012 4:15am

Thanks! I'd tried json_decode but hadn't include the true parameter.

#8 Developer Help » Transforming field values with the parser » October 24, 2012 5:07am

philp
Replies: 2

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?

#10 Developer Help » User authentication » October 23, 2012 6:20am

philp
Replies: 2

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.

#11 Re: Developer Help » Custom Field Types » October 10, 2012 9:47am

Thanks so much Ben — that's a really comprehensive overview, and sounds really straightforward now you've explained it. Will give it a go!

#12 Developer Help » Custom Field Types » October 10, 2012 6:21am

philp
Replies: 2

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?

#13 Re: Developer Help » Displaying an admin author » May 24, 2012 3:29am

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.

#14 Re: General » Enhancing `Array of Items` field » May 23, 2012 5:55am

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.

#15 Developer Help » Displaying an admin author » May 23, 2012 4:27am

philp
Replies: 6

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?

#16 Re: General » Enhancing `Array of Items` field » April 30, 2012 6:11am

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.

#17 General » Enhancing `Array of Items` field » April 27, 2012 6:58am

philp
Replies: 3

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?

#18 Developer Help » Development workflow » April 18, 2012 5:57am

philp
Replies: 1

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?

#19 Re: Developer Help » What is the module field select box for? » April 12, 2012 3:40pm

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...

#20 Re: General » Mixing different types of content » April 12, 2012 3:38pm

Thanks so much for this in-depth reply — is going to prove really, really useful in getting things up and running.

#21 Developer Help » What is the module field select box for? » April 12, 2012 5:59am

philp
Replies: 3

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.

#22 Re: Developer Help » Many-to-many fields » April 12, 2012 5:12am

Thanks for the info — have had a play around with this and managed to get it working nicely.

#23 Re: General » Mixing different types of content » April 12, 2012 5:11am

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.

#24 Developer Help » Many-to-many fields » April 5, 2012 5:24am

philp
Replies: 2

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.

#25 General » Mixing different types of content » April 5, 2012 3:44am

philp
Replies: 4

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?

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.