Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Best way to present the top 3 items from a long list

Featured Replies

Dear all,

 

The page I am currently designing is:

 

http://nottinghamhouse.bhavikmorar.co.uk

 

The two columns on the right (Events and Press, and Latest Construction..) are basically meant to show the top items from a list.

 

Can anyone help me or point me in the direction of the most intelligent way of creating such a list, and of dynamically showing the top three on the homepage, and possibly even adding to the list in a more friendly manner than having to access the html.

 

In the case of Events and Press, there is to be a page dedicated to events/press both past and present. I intend to show this on its own page in full in a chronologically ordered list. I would like the Events and Press box on the homepage to dynamically take the top 3 list items and show them.

 

How can I do this, and is there a nice way of making such a list to begin with (I don't have any clue about how to make this easy - all I can think of is XML but that isnt much friendlier than html to read/look at).

 

I think this question is bordering on CMS - id rather not have to create a secure login area online - perhaps there is something where I could update a notepad document?

 

Thank you and sorry for the lengthyness!

 

Bk7

PHP and a MySQL database are probably required.

 

Items are fed into the database (from a webform on a page private to you or through the hosting service PHPmyadmin) and then PHP can feed the results in date order to a web page table which will automatically add extra items in date order (or any order you choose and can exclude a field so you could have one output table for one field in date order and another output table for another field).

 

See http://www.wickham43.net/formphptomysql.php which has the input form and the output table on the same page.

 

Selecting the top three for display on the home page is beyond my capabilities but I expect it's possible. Do you mean that the number of times something is viewed has to be recorded or do you mean that you select the top three (which would be easier)?

  • Author

Thanks for your reply,

 

I was wary that this might require something like PHP.. which is a bit daunting since I only really know xhtml and css, and only used PHP briefly for a contact form.

 

When I say the top 3, I mean the latest 3 items in a chronological list going back in time (so basically the last three things to have happened).

 

Can anyone suggest any easier solutions? Perhaps a nice straightforward plugin :p

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.