So I’m developing a portfolio for my friend who is a renown printmaker. I need to code a site that he can edit without having to actually change/write code. He would have to update photos, descriptions, and other content. I’ve heard the best way to go about doing this is to integrate a CMS (content management system). How do I go about doing that?
Do I develop the website first and then integrate with a CMS like WordPress (was recommended), or do I have to do something special with WordPress while I’m developing it? Do I have to develop a template, and then bring in his info via WordPress? I’m just kind of confused where to start. If someone could point me to good tutorials or give me any general info, I should be able to rocket off from there. Thanks guys!
avoid CMS mad simple, that is all I can say on the subject.[/QUOTE]
Hi and welcome to the site. Do not attempt to code a site and then integrate it with WordPress. It can be done, but it is the hard way to do it!. WordPress (and other CMSs) are written so you develop the site within their environment. Using a theme is optional, but can speed-up the development as it pre-configures many items. However, don't use a CMS or theme that will need to be heavily modified to meet your needs. It can work out more difficult and time consuming than coding a site from scratch. Work within the limitations of the CMS/theme, or choose a different one![/QUOTE]
While I understand the viewpoint, you have to look at it from a full ROI perspective. If by using a CMS you can get an acceptable solution running in some significant fraction of the time you would otherwise (e.g. writing everything from scratch), then you've spent that much less time (and time == money) to develop it, [i]and[/i] it's live and (hopefully) starting to make a return on the investment you made.
Now, the hard part is knowing how to determine if (a) a CMS can actually do what you want it to, and (b) if so, will it actually save you enough time to make it worthwhile? ?[/QUOTE]
The thing my client would be doing requiring content management is switching out portfolio items (photos and descriptions). What is the alternative to using a CMS for an easy way for a client with no code experience to do that?[/QUOTE]
I'm confused about developing in the Wordpress environment. Is it some sort of Weebly/Wix thing? I was hoping to be able to code the site from scratch on my own code editor and somehow integrate Wordpress while I work. Is this possible? What do developers typically do when developing sites from scratch if they want their clients to have easy access to changing content?[/QUOTE]
So, after looking around, I found out the easiest option is to turn a static html page into a custom Wordpress theme. I have no idea how this works yet, but I'll be watching tutorials after I finish my current project. It's just going to be a one-page portfolio site, so I'm guessing I'll code the html/css/js like usual and somehow turn the html into editable content that can be managed through Wordpress (like images, paragraphs, etc). Am I on the right track here?[/QUOTE]
[code=php]
<!-- some static HTML to start, then -->
<div id="foo">
<p><? php echo nl2br(htmlspecialchars(file_get_contents('text1.txt'))); ?></p>
</div>
<!-- some more static HTML, then -->
<div id="bar">
<p><? php echo nl2br(htmlspecialchars(file_get_contents('text2.txt'))); ?></p>
</div>
<!-- the rest of the static HTML -->
[/code]
So in short, I should use it as a glorified version of Wix/Weebly? I really want the coding experience of creating the site, but I also want him to have a means to edit the site without code. I already have a site design mocked up and he wants it to look and function exactly like the design. I don't think a template will work for that, unless I'm misunderstanding. That's why I had the idea that the only way to integrate Wordpress into a completely custom site would be to create my own template.
Would I be better off coding the site from scratch and just editing the images and descriptions for him when he needs to? Maybe create a simple PHP cms to manage adding/deleting/changing portfolio items in the future?[/QUOTE]
If you want a facility for a non-technical user to update the site, but you want to code it yourself, then you essentially need to code it as your own CMS. That means adding user login/authentication (so that only authorized users can change the content), and some way for them to actually make the changes. If the layout will stay the same, then all(?) you need are form fields where they can edit the text for the relevant text sections, and upload new images to replace the current ones. Those "pieces" will then likely be stored somewhere (database, config file, etc.?), and then the actual page view would be a script that dynamically loads those pieces in. Let's say you just save the text pieces in 2 files, called text1.txt and text2.txt. In PHP, a simple way to include them would be something like:
[code=php]
[/QUOTE]
<!-- some static HTML to start, then -->
<div id="foo">
<p><? php echo nl2br(htmlspecialchars(file_get_contents('text1.txt'))); ?></p>
</div>
<!-- some more static HTML, then -->
<div id="bar">
<p><? php echo nl2br(htmlspecialchars(file_get_contents('text2.txt'))); ?></p>
</div>
<!-- the rest of the static HTML -->
[/code]
Awesome, that's exactly what I was looking for. I thought coding a custom theme would be a viable option, but it sounds like the two sides are either using Weebly as a glorified version of Wix or creating a custom CMS.[/QUOTE]
0.1.9 — BETA 6.18