-
Posts
1,147 -
Joined
-
Last visited
-
Days Won
4
Everything posted by onjegolders
-
How to automatically set the value of a field?
onjegolders replied to bytesource's topic in API & Templates
Hi Bytesource, just out of interest, the way I finally went about having a unique invoicing number for our invoicing system was simply to count the existing number of invoices and to add 1. This relies on not deleting invoices. Instead, when a user (normally myself) clicks delete on an invoice, it simply changes its status to "cancelled" and I can then choose whether to display it in the invoice list or not. This approach may be too basic for your needs and it doesn't use a module but it seems to work well enough for us. EDIT: OK, so I should have paid more attention, I see that you're wanting to do this through the admin? -
I do see Zahari's point though I'm more inline with Diogo's and Kongondo's (we're lucky to have you 2 guys in our community, we really are ). I remember someone once pointing out as a link to documentation php.net and it does hold true to a great extent. Using PW is basically using the PHP language with an incredibly helpful API on top. You sort out your selector using $page or $pages then you use PHP to loop through your content. I really think 90% of using PW comes down to something so simple. Yet it's not easy to grasp a) if your PHP is too basic (as mine was) or b) you come from using another system where you're made to believe that things just have to be more complicated than they should be.
-
Have to say Nikola's Ergo template is really great, I've modified a few things and removed the sidebar area as my clients don't tend to need it. I really think @Nico Knoll should be building an admin theme when he gets back of his Interrailing trip!
-
I understand what you're saying pwired. Most, if not all, of our clients of a certain size at least mention Wordpress. We normally then have a conversation about the downfalls of using WP and why we prefer to use PW. So far, no-one has insisted on WP but that could be to do with the fact that we tend to work with small -medium sized companies. I'm pretty sure at some point we will face a client who insists upon it and we'll then have to weigh up whether or not to go with this client or perhaps turn down the work. What's your experience pwired?
-
I have to say the last time I tried to work with WP, I just couldn't believe how hard it was to find a custom fields plugin, figure it out, get it to work then sigh when it inevitably doesn't work as well as native PW. I have to say one area where I think PW needs to close the gap is in using a nice shiny, modern admin interface. I love Ryan's original version, it's very ergonomic but I think a few of the newer systems out there benefit from really modern clean design (eg: Squarespace). I'm currently making a few tweaks to Nikola's excellent Ergo theme.
-
Same here. Bit of a bugger I agree, may have another go at overriding the CSS.
-
Joss, did you ever get anywhere with incorporating WYSIHTML5?
-
Register users and add page same as username
onjegolders replied to Vineet Sawant's topic in Getting Started
Out of interest, would you be able to login to the admin with a password of 1234, presuming it was set with the API?- 30 replies
-
- login
- create page
-
(and 1 more)
Tagged with:
-
Fantastic job mate. I love that it's embraced larger screens yet the text remains more or less where you'd want it as a user. Animations look slick to me (Chrome OSX). Nice one!
-
Thanks Adam, looks good. Glad to see a sub menu of Setup, anything that saves me a click...!
-
I had a problem with floats Luis and I can't remember exactly but I think I had to set decimal places to something else first (like 1), save it then go back and revert it to 2 places. For some reason this solved it for me.
-
Looks great Nico!
-
Won't some nice fellow add me a nice quick link to fields and templates when you hover on setup, so I don't have to build a whole new theme?
-
In the dev branch? Not seeing it in 2.3
-
I wonder if setting up roles may one day involve a different screen where boxes can be checked as opposed to going to each individual template at a time, then to access, then click and save (and repeat n times - imagine if there were 100 templates)? I still think this "batch screen" (not just for roles) is a bit of a gap here, having already seen what a help Wanze's Batcher module is for example. If I ever get round to it, I may even have a go myself!
-
Simple responsive documentation admin theme
onjegolders replied to Michael Murphy's topic in Themes and Profiles
Think I may end up giving this a go but probably will use Foundation instead as I find it just a little more flexible, pretty much the same end result though. Just need to find a few days free time Any news on Michael? Seemed onto a good thing here... -
Thanks guys, I really think it should be CSS, it was just I was having a hard time handling a select/option nav for some reason Home About -- About This -- About That Blog Work -- This Work -- That Work Contact Am sure I'll end up with it in CSS, was just wondering if there was an added class.
-
Sorry Soma, Is that not the class for the parent itself, I was looking for a class for the child of a parent. Only ask I was having trouble targetting a specific "option" for a mobile nav. (I did read the docs I promise )
-
Hi Soma, Any possibility of a has_parent class?
-
Hi Nico, This is a fantastic looking theme, great work as usual. I'm just having an issue with a repeater block stuck at the top of an edit page. Screenshot:
-
Thanks Adrian, I did try natsort but it seemed to be producing empty arrays which was strange, may give it another go, thanks for your suggestion.
-
I seem to have found a way around it by adding a float field and using that to sort and using the text field versions to do the calculations.
-
Hi guys, I'm running into a few issues trying to use my sorting dropdown on a table to play nicely with digits in a string. My table currently has a total as one of its columns and I have created a select dropdown to choose the sorting method: <form action="./" method="post"> <select name="sort" onchange="form.submit()"> <option value="title">Sort by...</option> <option value="title">Invoice number A-Z</option> <option value="-title">Invoice number Z-A</option> <option value="invoice_total">Invoice Total A-Z</option> <option value="-invoice_total">Invoice Total Z-A</option> <option value="invoice_status">Invoice Status A-Z</option> <option value="-invoice_status">Invoice Status Z-A</option> <option value="invoice_client">Client Name A-Z</option> <option value="-invoice_client">Client Name Z-A</option> <option value="invoice_date">Invoice Date A-Z</option> <option value="-invoice_date">Invoice Date Z-A</option> </select> </form> <?php foreach ($page->children("sort={$input->post->sort}") as $invoice) { ?> I've just realised that it will struggle to sort my invoice_total as I believe it may need natsort() applying to it. The problem is when I try this, it seems to completely empty the pageArray. Could anyone give me a pointer? Thanks