Jump to content

Jon

Members
  • Posts

    159
  • Joined

  • Last visited

Everything posted by Jon

  1. Thanks for you help guys I've had a change of direction as I seemed to be reinventing the wheel a little. Ive decided just to create the booking from the child in the first place. Cheers Jon
  2. Hello Tom, Thanks for that. I cant see how that would work (Iam probably missing something.) I dont know what the parent page is until its selected then after that I need to get the children of that parent. Basically these booking pages (within the admin section) are separate from the cruises so I don't have a link between them.
  3. Hello, I was wondering if PW had a pay of populating as seconds select based on the first select within the admin pages? Basically have a a list of cruises and each cruise has a number of children. What I would like to do is Select cruise in one dropdown and the date dropdown would list all the child dates. Is this possible our would I be better of creating a custom admin page for creating these bookings Cheers Jon
  4. Sorry Macrura, I should have said "I added some Images to the page" via a image field. Iam just running on my local pc using WAMP. Iam getting this in the acces.log then it just stop ::1 - - [17/Jan/2016:20:19:22 +0000] "GET /tml/site-manager/page/ HTTP/1.1" 200 51024 ::1 - - [17/Jan/2016:20:19:23 +0000] "GET /tml/site-manager/page/list/?id=1&render=JSON&start=0〈=0&open=undefined&mode=actions HTTP/1.1" 200 13997 ::1 - - [17/Jan/2016:20:19:45 +0000] "GET /tml/site-manager/page/edit/?id=1035 HTTP/1.1" 200 2
  5. Hello, Ive just added some pages to a page now when I try and edit this page nothing is returned no admin interface just a white screen any ideas? It just this page. Cheers Jon
  6. Hello Horst, Thats great thank I was going to use a timestamp it would be very unlikely we got a booking at the exact same time, but adding a check just in case would be a good idea! Thanks for that. Jon
  7. Hello, I am just after a bit advice as to if this is the correct/best away of going about this. Iam looking to store booking information (no card info just names and booking information) with each booking being a new page. This is how I was thinking of doing it. Front end from which sends the relative information then I would great a page(s) in the admin tree Admin>Bookings>Booking To create this page I would be using the following code along with the information ill be storing $p = new Page(); // create new page object $p->template = 'booking'; // set template $p->parent = wire('pages')->get('/site-manager/bookings/'); ...... Is this the best practice to do this and secure? Cheers Jon
  8. Hello kuba2, If you are using sass $table-backgound: $white is in _settings.scss line 490(ish) Foundation 6 has a few options responsive tables depending on which suits your needed best. Scroll which scrolls the table horizontal at a set break point. Stack which will stake to on top or each other or responsive which keeps first column static and you can scroll the remaining. Couple of links worth checking http://foundation.zurb.com/sites/docs/table.html http://foundation.zurb.com/responsive-tables.html
  9. Sure, my mystyle.js pretty much identical to the default apart from i've added X at the start of small to see if its being picked up /** * mystyles.js * * This file may be used when you have "Styles" as one of the items in your toolbar. * * For a more comprehensive example, see the file ./ckeditor-[version]/styles.js * */ CKEDITOR.stylesSet.add( 'mystyles', [ { name: 'Inline Code', element: 'code' }, { name: 'Inline Quotation', element: 'q' }, { name: 'Left Aligned Photo', element: 'img', attributes: { 'class': 'align_left' } }, { name: 'Right Aligned Photo', element: 'img', attributes: { 'class': 'align_right' } }, { name: 'Centered Photo', element: 'img', attributes: { 'class': 'align_center' } }, { name: 'xSmall', element: 'small' }, { name: 'Deleted Text', element: 'del' }, { name: 'Inserted Text', element: 'ins' }, { name: 'Cited Work', element: 'cite' } ] );
  10. @Christophe Yes the rules already exist and I have places the new Classes in Extra Allowed Content. It more the case of the Style dropdown. @Fokke I have check for JS errors in console and getting nothing. I dont know where the styles list is being loaded as I've copied mystyles.js from wire into site and changes the Small option to xSmall just to see if the file is actually loading but it still remains Small. Any more Ideas? Cheers Jon
  11. Hello, Ive just installed this module but get the following error. Any Ideas? Error: Call to undefined function _() (line 56 of F:\Programs\wamp\www\tml\site\modules\ProcessSetupPageName\ProcessSetupPageName.module) This error message was shown because you are logged in as a Superuser. Error has been logged.
  12. Hello All, I cant seem to get styles working in CK Editor. I have followed the github tutorial here. I copied mystyles.js from wire to site and changed the "Custom Editor JS Style Set" to mystyles:/site/modules/InputfieldCKEditor/mystyles.js as soon as I do this the style box is empty then when I click within the content the style box is disabled. Any Ideas? Cheers Jon
  13. Hello guys, Thanks for the info guys, Macrura that post was very useful and managed to adapt it to meet the my needs. With regards to the wire('page') find is that specifically for getting repeater fields? I like the way you can add properties aswell that's cool! Cheers once again guys
  14. Hello I am looking for abit advice on how to achieve this. I have a number of pages all containing a date. I would like to display the results sorted by dates but with a header for each month so for example. April Date 1 Date 2 Date 3 May Date 1 Date 2 Etc Does process wire have any built in function in the API for this? Or will it need to be done via a database query Cheers Jon
  15. Thanks guys for the help guys. Adrian solution was exactly what I was looking to achieve. I wasn't far way with the module I tried creating initially one thing I was using is the save hook rather than saveReady Can you explain what the difference is between them? Also are they any benefits regarding doing something like this in a separate module or ready.php? Much appreciated guys thanks again Cheers Jon
  16. Hello, I am having a bit trouble figuring this out. What I have is a number of different cruises and each cruise has a number of children relating to different dates. For these child pages I would like to generate a custom title. Which would consist of the Parent Cruise Title(Parent Page) - Cruise Date(Child) - and finally Boat Name(Child). This would give me a unique page name. How would I go about achieving this I realize that this would need to be done after the save so the information can be picked up from the child fields. Ive had a look into some hooks couldnt get my head around them Cheers Jon
  17. Ah thanks , I just figured it out aswell Cheers Jon
  18. Hello, I seem to be having a issue getting the page title of the parent to display within my child page. I can get the ID ok via echo $page->parent; I have tried echo $page->parent(title);But this doesn't work. Probably something simple I am not doing!Cheers Jon
  19. Hello All, I am using PageTable which works great but Ive just tried adding a additional field (Page Dropdown) with of all 4 fields is set to =25 but ia gretting the following error Does anyone have any ideas as so as I remove the Page field the error goes away Cheers Jon
  20. Yes that would make a lot more sense to have a field within the "TourDate" which gets updated to included the number of seats available rather than counting. Thats great the site I am proposing will have now where near that many cruises. So it great to see the potential!! Thanks for sharing. That sounds like a better way of doing then that would enable the all the booking to be viewable rather than having to going into each trip date within the tree to view booking information. Is it possible to filter bookings/orders within the admin as I could end up with quite a few. Say filter them by a specific date or tour name
  21. That's sound like a good way of doing. I think it would be easier for a admin point of view if the tour dates could be added/edited below the parent tour information. As it theory the only fields I would have for the tour date would be start date, spaces, free spaces and discount price Hello Sarah, Thanks for your reply, Each tour could have multiple dates so would that be the parent page of TourDates. So would I keep the free seats within the TourDates page and count the number of booking for that cruise via Bookings (SeatsBooked) to update the FreeSeats or I am missing something more obvious? For example : --Tour (Fields : NumberOfNights, Price, ) ---TourDates (Fields : StartDate, Seats, DiscountPrice, FreeSeats ) ----Bookings (Fields : SeatsBooked, Name, etc) Cheers Jon
  22. Hello Guys, Been using WordPress for a few years now and just come across ProcessWire which looks Ideal for most the work I do. But not just about this project so would just like a bit of feedback if possible. Iam looking at using it for a tour website which will allow customers to book tours and process the payment via WorldPay. The site structure would be something along single Tour pages with either children TourDates or Maybe using the ExtendedTables plugin to store the dates. The bit I am unsure about is the booking side of its. When a customer makes a booking I would like to store the booking information in processwire and removed the number of spaces booked. What would be the best way of storing this a Child of the TourDates? Cheers Jon
×
×
  • Create New...