Mosets Tree template changes

  • Status Closed
  • Budget $30 - $250 USD
  • Total Bids 9

Project Description

Please view attached document for full brief.

All the "Mosets Tree" database entries have been added and are functioning fine.

We have configured the "Mosets Tree" standard configuration.

In Summary

The project requires changes to the php in the joomla [url removed, login to view] file only.

Sourcing listing id's, parent id's and creating loops to find id's from the parent or parents id's (categories and sub-categorys) if not available use default. Accessed from the Mosets Tree database tables.

Based on the standard template (kinabalu) in "Mosets Tree", which allows for module to be targeted to a specific area by naming the position e.g. 'module name-header(CAT_ID). Pulling in the cat id automatically.

"For example, to use category2-footer-id{cat_id} in the category with ID 13, you'll enter category2-footer-id13 as the module position.", but we want this to be available across the whole site outside of the "Kinabalu" template, which is restricted to the area within the page that draws in the "Mosets Tree" data. Even though the Joomla template will have this code in it, for none "Mosets Tree" pages, there are no categories and listing id's, so the page just brings in the default images or no modules.

We have already created a working prototype and entered the following Three codes.

There are three requirements to the project, but should be quite simple as they are expansions of existing code and are all three codes are closely related. We would like the changes to be isolated just to the one php file within our joomla template folder; [url removed, login to view]; limiting any upgrading effects with Joomla or "Mosets Tree".

1) Code one finds the id for the page, and calls in the corresponding image from the image folder with the same id, then displayed in the background of the html, if no file is available it places a [url removed, login to view] in instead (this works). We required this code to be expanded upon, and loop back if no id are found for the actual page. The category above may have an image and place that in. However when drilling down to listings it will not have an corresponding id, so it will have to search the category above or sub-category until it find one, two levels up should be sufficient before default is required, so we require that the code searches the category above, search the parent, and then the parents parent and if no id, place the default image in.

Directory structure: (for modules and image source)


Level 1 - Leisure Activities (category) (image/modules available)

Level 2 - Tennis (sub-category) (image/modules available)

Level 3 - Hertfordshire (sub-sub-category) (maybe an image/modules available/not available) - source from above parent

Listing - Tim's tennis coaching (maybe an image/modules available/not available) - source from above parent

2) The same principle is required for a header image as the background image. The code we have created displays a header image on the page that relates to the id, and places a default image in, if no id is available. But we require the parent or the parents parent checked before the default is placed in.

3) Code two is similar to the background and header image requests, but places a module in the correct position. Once again it works to a point, places a module into a page where we have named the module "test-id23. We will duplicate this code to place in other modules areas on the page… should work multiple times, just change the name="test-id". As we have have 3,000 categories and 45,000 listings we will most probably just apply modules to category's and sub-categories, so we require the code to loop back to the parent and the parents parent if no module is present, then nothing is displayed.

Get free quotes for a project like this
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online