Jump to content
Sign in to follow this  
sakkoulas

How would you build a daily newspaper

Recommended Posts

hi everyone,
i will appreciate some help of you.
if you had to build a news portal with multiple categories and tons of articles, How would you build it?


solution 1
home page
category 1
    item
    item
category 2
    item
    item

solution 2
    Home Page
        news
            category1| template 1
                article | template 1,2
                article | template 1,2
            category2 | template 2
                article | template 2,2
                article | template 2,2
solution 3        
Home Page
    news | template 1
        article -> page field selected category | template 2


article -> page field selected category | template 2

article -> page field selected category | template 2

category page field
    category 1
    category 2
    category 3
of course i have study Ryans blog module  and i know  he use the third solution but i am afraid if this style gone be hard after some thousands of articles to be filtered, searched. thanks

Share this post


Link to post
Share on other sites

I am putting together a blog solution at the moment and the way I am doing it is this: (remembering that this is just one way)

Main Menu:

Home (er, obviously)

Category 1

-- subcat

---- subcat

Category 2

-- subcat

---- subcat

Category 3

-- subcat

---- subcat

---- subcat

---- subcat

------ subcat

Category 4

-- subcat

---- subcat

So, those could for instance be Sport, Politics, Media and so on with a category tree underneath of any complexity.

Articles are actually just being added as children to a hidden page called Articles and have a page field to select one category. They are all in one list (as with things like WordPress) though you could break them up if you wanted for management purposes. It does help for development purposes, if all your articles have either the same parent OR the same template (one or the other). It makes dealing with them easier. In my case, because I have very different post types (and therefore associated templates) I have gone for a common parent approach and will rely on the search or the front end to find things :)

Then...

I have a pile of tags under a hidden page called Tags. These are also selected by the article using a page field, but you can select multiple tags and add new ones.

I also have Topics, again under a hidden page. You can make any article select several topics, but not add new ones. Topics are being used as cross references. So you may have a topic called "Politics in sport."  This would be used for an article about sport that had a political bent that you want listed primarily in the Sport category.

I also have authors, which can be yet another sort method.

EDIT: Almost forgot, I have several article types - Video, Photoblog, Standard Blog, and so on. So articles can be filtered and listed using that criteria (basically which template is being used).

Second Menu

I have a top bar that has dropdowns for all topics and all categories as a quick link/cross link system. You can also search just as normal or filter the search by category and/or topic. The top bar also will have links to About and Contact so that the main menu is very much dedicated to just the articles.

That is the basic skeleton.

After that, it is down to useful tools. For instance I have created a widget that lists recent posts in the same category as the post you are viewing is in. I could also create one that worked on topics. 

You could use the categories as either single entities where each category only lists those articles that belong to it, or you could use them as filters. So, a top level category would list all articles belonging to it and any sub categories, a subcat likewise and so on down the tree.

There are rather a lot of ways to skin the ProcessWire pet cat, to be honest.

The main thing with news (which is nothing to do with ProcessWire as such) is that you have to allow quick and random browsing through main areas (like you would with a printed newspaper so your home page (and other pages) should lay out your wares nice and clearly, and you need to make sure you have some sort of editorial control with different groups allowed to do different things.

In principle, my approach is similar to Ryan's. but with some variations that suit my brain!

  • Like 1

Share this post


Link to post
Share on other sites

hi Jose, thank you for response, can you explain me more, what you mean with : have several article types, this is page field, or directories inside home like

articles

  video

  photoblog

  .....

thanks again

Share this post


Link to post
Share on other sites

Hi Sakkoulas

By article types I mean I have created different templates to suit certain ideas. A standard blog type article, a Photo Post where the images is the most important issues, perhaps a review style template or a recipe ... anything really.

A Page Field is a field type in ProcessWire that allows you to select one or more pages from the page tree.

That means you can use it for including one page within another, or use pages to create select options or, in this case, to relate one page to another as you would with categories or tags and so on.

This is an incomplete Wiki article about the page field showing how it can be used to create selects. But it will give you a clue about its greater use. 

http://wiki.processwire.com/index.php/Page_Field

I am not sure what you mean about directories ...

Joss

Share this post


Link to post
Share on other sites

ok i understand, i think,  every time you insert a new article you must also select template for the current article

with directories i mean

all articles
  sport
     soccer
       local soccer team
          article 1
     basketball
  politics
    ..
    ...
  economy

 

Share this post


Link to post
Share on other sites

With Processwire there are no directories in the admin. 

It is all pages.

Pages can be used for anything (not just a page full of information). 

They can be used as a placeholder, or an option for a select (using the page field), or as an actual container for data.

Your articles are pages, your categories are pages, your tabs are pages.

What makes them different is that you would use a particular template to reflect what that page needs to achieve.

Those templates may not have a template file associated with them - you only need to do that if you are formatting the data held in that page AND calling the page directly. (You can get information from another page by using $pages rather than $page)

All pages do have relationships to parents and children, and using their template, you can dictate how that relationship works.

For instance if you had a hidden page called "Posts" under home, and it had a template called "Post-Placeholder" which had no fields other than the title field, then you can set the template so that any children of "Posts" had to have a particular template - your "news" template, for instance.

So you can limit the choices to make the system more manageable.

It is up to you what a page is pretending to be, if you like!

Just play with multiple pages and templates and you will soon see how you can relate them together and therefore how you can design just about any structure you need.

  • Like 2

Share this post


Link to post
Share on other sites

thank you for your help joss.

I will try those

I was ment that they look like directories.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By AndZyk
      With around 3,400 employees worldwide, IMS Gear develops and produces specific drive solutions for international customers. In addition to the focus on the automotive industry, the focus is on applications for industry and e-mobility concepts.
      Finding new employees is important for the day-to-day business of IMS Gear. For this reason our agency designconcepts developed a job portal, where potential employees can easily inform themselves about the company, the application process and find the job they are looking for. The website was build with help of the framework UIkit.
      jobs.imsgear.com
       
      Features:
      Job finder Job offer PDF Newsletter Fly-in information pages  
      Job finder
      Core of the website is the job exchange with the job finder. Here you get a list of all available jobs which you can filter by three main areas (categories, task areas and locations). Or you can type in anything in the search field and filter by various keys (for example ID, title, country and hidden tags). The job finder was build with jQuery Typeahead, which was really helpful in building this complex logic. If you want to know which job is the closest to you, you can sort them by distance.

       
      Job offer PDF
      Every job offer has a printable PDF version for newspapers or other job platforms. The job offer PDF can be created by checking a checkbox in the back-end and saving the page. The PDF will then be created with all needed fields of that page and DocRaptor. This workflow is really easy for editors and guarantees a consistent layout for all created PDFs.

       
      Newsletter
      If there is no job for you available at the moment, you can subscribe to a newsletter with your areas of interest. Then you will be notified daily if a job is available with your interests. Instead of using a separate newsletter tool, the nice module Newsletter Subscription was used to manage subscribers. The newsletter will be send via a shell script executed by a daily cron job.
       
      Modules used:
      Continents and Countries Front-End Page Editor Functional Fields Markup Sitemap XML Newsletter Subscription ProCache Repeater Matrix Tracy Debugger Upgrades Wire Mail SMTP  
      Regards, Andreas
    • By AndZyk
      S. Siedle & Söhne Telefon- und Telegrafenwerke OHG is one of the leading manufacturers of building communications technology in Germany and Europe. For a company of this size it is important to have a solid brand communication. For this reason our agency designconcepts developed a portal where the employees of the company as well as others who work with or have interest in their brand can find everything that is important for the brand Siedle.
      The website introduces the brand, provides informations for different topics (for example logos, typography, colors etc.) and has a large Media-Center with images, videos and documents. The website was build with the framework UIkit.
      brand.siedle.com
       
      Features:
      Repeater Matrix Protected Content Media-Center Cart Auotcomplete Search  
      Repeater Matrix
      The information pages are build with a Repeater Matrix field and have a two columns layout. To be even more flexible, a section is a content element containing two Repeater Matrix fields for each column. This maybe sound crazy at first but was no problem and made complex layouts possible. 😀

       
      Protected Content
      Not all of the informations are meant for guests, so we made it possible to protect each page, section and content element with a checkbox. If this checkbox is checked, the content will only be visible for logged-in users.
       
      Media-Center
      The core of the brand portal is the Media-Center. The Media-Center is actually a mirror of a separate digital assets management database where the client can manage images, videos and documents with a nice interface in a protected environment.
      All new assets will be synced via a shell script containing PHP and curl commands calling the API of the database. This script will be executed every 15 minutes via cron job. This way all of the assets are saved as pages in ProcessWire and we can expand them with our own logic and fields. Also for the unlikely case that the database is not available, the Media-Center would still work.
       
      Cart
      Inside the Media-Center you can add assets to your cart. This cart is for downloading selected assets or sharing them with others. A cart will be accessible for 30 days.
       
      Modules used:
      Admin Custom Files Continents and Countries Email Obfuscation (EMO) Front-End Page Editor Functional Fields Markup Sitemap XML ProCache Repeater Matrix Tracy Debugger Upgrades  
      Regards, Andreas
    • By alexcapes
      Hi,
      I've been invited by Apple to use their 'News' service for a publication in the UK. https://www.apple.com/uk/news/
      A number of CMSs already have plugins to publish content via the API, however Processwire is not one (yet!)
      https://newsresources.apple.com/en/faq/66346243
      It's slightly beyond my technical abilities but would be very interested in anyone that is willing to look at developing a Processwire Module.
      (for reference here is the Apple News API documentation)
      Update: Chapter Three have created a PHP Apple News library here https://github.com/chapter-three/AppleNewsAPI
    • By Brian Scramlin
      Hello,
      I am truly stuck. I have a website I built for a client that has become quite successful: http://drydenwire.com
      It is an independent news agency. The problem is, I built everything from scratch in Processwire and things were purring along until the traffic went up. Now, I keep getting these huge spikes which last about 15 seconds and cause all users to receive a 503 Error. I have created a public repo for review: https://github.com/scramlo/DrydenWire.com/tree/master and can answer any questions that may lead to an answer. I am willing to hire a more experienced developer if the community is unable to help me mine out this issue.
      I have gone through the usage logs and know that all traffic is legitimate, I am not getting bombarded by a spam IP address or anything like that.
      Thank you for any and all assistance as this client is getting frustrated and I would rather not lose them!!!
      -Brian


       
    • By gregory
      Hello guys, how can I view the image field? I need to view the Image associated to the post of the news. Thank you
×
×
  • Create New...