- 
                
Posts
4,046 - 
                
Joined
 - 
                
Last visited
 - 
                
Days Won
67 
Everything posted by Pete
- 
	
	
				Running a Daily Newspaper website with Process Wire.
Pete replied to Crssp's topic in Getting Started
It's ProcessWire API code, which is basically PHP functions for the most part. Best thing to do is if you can share an example news post like I mentioned and one of us can probably give you a better idea. - 
	Any topic like this is bound to get negative at some point, whether it be people like me balking at the price of things or others with different dislikes. All that aside, what would we achieve from more hands on deck? Well let's see - the majority of people here help each other out. Many people contribute ny way of modules (which are simple to write compared to other systems). Others spread the word because they like the project so much. It's not a case of bums on seats - we've got a growing commmunity of active users who help each other and enrich the project going forwards. We've been lucky enough to attract a lot of talented people who used to work with other well-developed systems who now prefer ProcessWire because it genuinely saves them time and stress and makes building websites fun and quick. It's not for everyone though - you can use it to build pretty much everything you might need in a website but you might want to take a step back if you were thinking of building a specific web application or other project that requires complex relationships in the database (although some folks here are managing to build those in ProcessWire too). We're no Wordpress/Joomla rival in terms of numbers, but all I see with those platforms is clunkyness and bloat personally. Modules for both are hit and miss as most here are aware, and clients will often push one of those systems for the sole reason that they've heard of them before and trust the name. I'm glad we're not that big yet because we're at a stage where we have some quality modules and can keep an eye on them and suggest improvements to them. It's not imposed quality control, it's helping each other out. Not sure where my train of thought is rolling off to, but I think the bit about what we would achieve by people coming here from other systems is that we often then have the skills as a community to help others who come from those systems. We often see questions like "I do this in my old CMS, how would I do it in PW?" which is great as the more experience we have in the community the quicker we can help those people out. As for any perceived plagiarism with any of the admin themes (I've not used EE so don't know which theme you're referring to, hence my choice of wording), if there is an issue then please inform ryan and I'm sure he will look into it. If nobody makes a complaint then we can't take action. I hope none of that has come across as negative. I'm not the best at being impartial on forums and I'm just trying to get my own points across. EDIT: @Antti - fixed, there are a few styling issues left I think.
 - 
	From memory the XML sitemap class doesn't check for multisite needs, though I seem to recall someone asking this before and maybe even posting some altered code (I might have dreamed that bit thouugh!).
 - 
	At least indenting seems to work. What is infuriating though is that the new code button does indent stuff fine, but it's hard to see what's code and what isn't when you go to edit a post. Still, I just checked and you can add to code when editing a post and it seems fine - you just have to realise that the stuff in Courier font is code. It's like they changed the system so it works, but at the same time gave more margin for error
 - 
	Well I did fix the JS issue so that's probably it Soma Tina - not sure which links you mean? They should all be up top if we're talking the links in the light-blue section, or other links are at the very top on the dark bar above that. I just checked the old template against the new one and don't see any missing links.
 - 
	EDIT: arjen beat me to it
 - 
	No they don't, but minor updates usually result in smaller template edits so it's just a bit of a hassle the first time you create a template - maybe when I win the lottery I'll pay Antti to build on his PW discussions module for a year solid I've added some padding now.
 - 
	Well that is a bit annoying. I've got another forum locally that doesn't give this error so I should hopefully just be able to copy and paste some JS files and fix that. Easy fix - any more?
 - 
	Erm... you click into the reply box and the editor appears, no? Also, what browser are you using to see the error? I'm in Firefox (latest) and honestly can't see any more errors.
 - 
	Bah, ran an old-fashioned SQL query in phpMyAdmin and fixed it for the remaining members. Don't know why it didn't update you all automatically but there we are.
 - 
	I think that might be because you're a moderator but I'm not sure. I'm removing access to the old one so it should move any stragglers over to the new one automatically.
 - 
	Hi folks - I've upgraded the software successfully this time and applied the new theme to match the new version of the site. I've noticed one or two minor tweaks since doing this so I'll be making some minor adjustments this evening, but other than that it should be fine.
 - 
	
	
				Running a Daily Newspaper website with Process Wire.
Pete replied to Crssp's topic in Getting Started
From by brief scan of this topic (I keep falling behind) I'm with diogo in that it wouldn't be too hard to import them with a script and use the API to put them into ProcessWire as pages, use the date from the folder as the published date and then you have a nice, structured database for your news stories with search functions and a date-based archive. I've imported something that sounds a lot harder than what you're after, so if you have those nice tags like <!-- Text --> to delimit different parts of content it should be relatively simple. Is there any chance you can provide an example article? Also if there are associated images with some of them, are the image files names sensibly or are they just in the folder with the text file (i.e. one folder per article - I think they would be looking at your first post)? If you don't want to post something on the forums but dont mind sending it my way then feel free to PM me and I can have a quick look. - 
	For the usage you're talking about I agree with Antti. Using the $db class this would be pretty straightforward as well as you're not talking about a complicated table either I think this will come up in lots of scenarios where the number of invisible pages far outstrips the number of visitor-facing pages by a huge percentage (and it's not due to form entries) - that's the time to seriously consider whether to use an external table.
 - 
	Well, my mouse is wireless at least, but it does generally look like someone has been fly-tipping here lately since things got shoved in the corner over Christmas.
 - 
	One thing I've done a lot before (with less-pretty galleries ) is to make the first image in the images field represent the whole gallery. I'm pretty sure a lot of people do this, but it's easily grabbed with: echo $page->images->first()->url; Which everyone probably already knows
- 8 replies
 - 
	
- 1
 - 
					
						
					
							
					
						
					
				 
 - 
	
		
- processwire
 - showcase
 - 
					(and 1 more) 
					
Tagged with:
 
 
 - 
	Ah, didn't see that - that's even better
 - 
	Sadly Joss my desk still looks like that Before picture.
 - 
	I think all you really need to do is make sure people have to log in yo view the content and use an SSL certificate for the intranet for good measure to encrypt the flow of data from the site to the users. Then it can just go on normal hosting. Of they're running im am Active Directory environment on their company network then this could be useful for authentication but it's not straightforward to set up:
 - 
	No problem - if something seems too hard in ProcessWire there's usually an easier way
- 18 replies
 - 
	
- 4
 - 
					
						
					
							
					
						
					
				 
 - 
	
		
- abstract class
 - fieldtype
 - 
					(and 2 more) 
					
Tagged with:
 
 
 - 
	Well the markup would be outputted to the template file on the front-end wouldn't it? Or am I missing something again and this is supposed to be totally back-end for some reason? If the resulting page content is front-end, then edit the front-end template file and you can reference them as $page->parent_page and $page->number_of_pages or whatever you've named them. I guess I'm still not sure where the output is supposed to be in this case but if they fill out those fields in the admin then in the template file you would have something like: foreach ($pages->find("parent={$page->parent_page}, limit={$page->number_of_pages}") as $result) { echo $result->title . "<br />"; // <-- Your formatting here } That's similar to some code from earlier. They don't need to edit that code as you would be the only one editing the templates. Of course I could still be miles off from what you're trying to do
- 18 replies
 - 
	
		
- abstract class
 - fieldtype
 - 
					(and 2 more) 
					
Tagged with:
 
 
 - 
	No problem - let us know how you get on.
 - 
	From your description, I have another question Why not simply use two separate fields instead of combining them into one fieldtype? Am I guessing correctly that this module was supposed to give them the choice of selecting specific options when adding a page in the admin interface then?
- 18 replies
 - 
	
		
- abstract class
 - fieldtype
 - 
					(and 2 more) 
					
Tagged with:
 
 
 - 
	@Soma - I think you meant "achieve" not "archive" throughout that post. I wouldn't normally correct someone (especially since my language skills other than English are pretty poor) but it could cause confusion in this case.
- 18 replies
 - 
	
- 1
 - 
					
						
					
							
					
						
					
				 
 - 
	
		
- abstract class
 - fieldtype
 - 
					(and 2 more) 
					
Tagged with:
 
 
 - 
	The cache folders had all been deleted, so I don't think it was that.