leftblank
Members-
Posts
15 -
Joined
-
Last visited
Everything posted by leftblank
-
Lovely solution, cheers Ryan!
-
Hi, Is there any problem with having staging and production sites sharing the same database? If content is updated in the shared database, then I'd know that the two system's content were in sync with each other, and code changes in files would be the only difference between the two. And I'd just keep new content unpublished or hidden until it was due to go live. Could anyone let me know what the would be the benefit of separate staging and production databases? Cheers!
-
Hi, I'm developing locally, but connecting to a remote database on my staging server, so I can see the correct content when I'm developing. All of my assets are uploaded through the admin on the staging server, and are therefore hosted on the staging server. When I refer to an asset in a template, it is looking for that asset on my remote machine, so I therefore want to tell it to prepend the URL of my staging server in front of every asset path. Is there some global place I can do that? I don't fancy having to manually paste in a URL variable before every asset call in every template. Thanks!
-
Sorry, my mistake. I installed an adaptive images plugin on the server which is dynamically resizing images dependant on device screen size.
-
Hi, I'm running Processwire 2.3.11, and am uploading images of size 1920px x 1080px into pages. However, when I view the files by opening them in Chrome at the image's URL, opening the inspector indicates they are actually only 1520px x 866px. Saving the file to the desktop shows that this is indeed the case. Why might this be happening? Thanks.
-
Oh nice... didn't know they were clickable! Cheers
-
Hi, I'm finding that I'm repeating field types in order to slightly vary the description attached to the field in different templates. For instance, I have a generic 'image' field type which I'd like to include across various templates, but in each template I'd like to include a slightly different instruction about the image dimensions the image should be uploaded at. At the moment I'm creating a new field type for each different description, and my list of fields is growing rather large! Is there some way of modifying the description for a field on a template by template basis? Thanks
-
Thanks guys - this community is the best.
-
Hi, How can I display which user published a page? Looking at the cheatsheet, the $page variable doesn't seem to have any field containing an associated user object. It seems like this should be possible out of the box, so am I missing something, or this something I'd have to implement manually? Many thanks!
-
Hi, thank you for your replies! That works... having everything represented by the Page model makes sense in the context of ProcessWire, just required me to make a bit of a mental jump. One further question - is there anyway to exclude certain templates from the appearing in the results of the search function in the admin pages? There's hundreds of entries being returned for some data types which aren't particularly likely to be interesting to end users, who might not realise they can filter.
- 4 replies
-
- data capture
- ORM
-
(and 1 more)
Tagged with:
-
Hi, I'm new to ProcessWire after using general purpose MVC frameworks such as Laravel/Rails/Django, due to the fact I cannot find any CMS built on those platforms feels as stable, well supported, and easy to use (for clients) as ProcessWire does. I'm trying to replicate the MVC benefits of the above frameworks in ProcessWire, so I'm abstracting my templates into Controllers and Views as described in this thread, however, I am really missing the ORM API's in these frameworks. Being able to define models and them to store relational data i.e. social data, form data, and whatever else without dropping down to raw SQL.... and then retrieving and outputting this data in my templates. Does anybody have any advice of achieving this kind of behaviour in ProcessWire? Would it be a case of integrating a third-party ORM, or is there some whole part of ProcessWire that I've missed?
- 4 replies
-
- data capture
- ORM
-
(and 1 more)
Tagged with:
-
Thanks for the pointer Adrian, that's a helpful thread and the work on blocks functionality looks like a possibility in the future. Teppo these modules look really useful, thanks! Definitely make it more user friendly to go down the tags route.
-
Hi, There is a section of a new website I'm building where there is a need to publish longer form articles, where I intersperse paragraphs of text with images, quotes, videos, and galleries. I'm wondering if anybody has a good approach for constructing this kind of article in ProcessWire. I was originally using a TinyMCE field to embed my images in the correct place in the flow of the body text, with the float classes floating the images appropriately. Including other types of content such as videos and galleries looks a little bit harder to manage, and I can only thinking of including strings to match on in the body text and replacing them in the template, which isn't quite as user friendly as I'd like. It's also a bit of a nightmare to make it work with Susy Compass plugin which is handling the responsive grid. My other idea was to include a repeater field, with each field including optional places for paragraphs of copy, galleries, videos etc. However this doesn't feel that natural, and it's difficult to make the text flow from section to section. Does anybody have any ideas about a good solution for this kind of article? Many thanks.
-
Drag n drop sorting over paginated results
leftblank replied to leftblank's topic in General Support
Ah! That's what I was missing. Many thanks Soma! -
Hi, Is there any way to drag n drop items from one 'page' of the admin tree to another? I want to allow users to manually reorder items in the admin as it's an intuitive interface, but I can only seem to drag an item to a position in the current page of results, which is limiting. Did I miss something? Many thanks, Alex