Jump to content

How to clone home.php for additional homepage notice block


ngross

Recommended Posts

Hi Folks,

I want to add another text/message area to the homepage - more or less - identical to the current homepage message (../admin/docs/home.php).

I've done quite a bit of development work using procedural php (not professional!) but this OOP leaves me completely bewildered.

I guess I should be able to

a. add a new column to the DB (I can do this).

b. copy 'home.php' and rename it to (say) 'news.php'. Then revise the code to relate to 'news' rather than 'homepage' ?

c. I'd also expect to copy/revise the SQL for the requests -- but where to find them?

d. then I need to be able to integrate the new procedure into the admin menu

e. finally I need to integrate the output into the front page - template ?

I've tried searching the forum but I haven't come up with anything quite specific.

Any help much appreciated.

Neil

Link to comment
Share on other sites

Hi Folks,

I want to add another text/message area to the homepage - more or less - identical to the current homepage message (../admin/docs/home.php).

I've done quite a bit of development work using procedural php (not professional!) but this OOP leaves me completely bewildered.

I guess I should be able to

a. add a new column to the DB (I can do this).

b. copy 'home.php' and rename it to (say) 'news.php'. Then revise the code to relate to 'news' rather than 'homepage' ?

c. I'd also expect to copy/revise the SQL for the requests -- but where to find them?

d. then I need to be able to integrate the new procedure into the admin menu

e. finally I need to integrate the output into the front page - template ?

I've tried searching the forum but I haven't come up with anything quite specific.

Any help much appreciated.

Neil

Just reporting back -

I think I've found a mod at cubecartforums org that will do the trick - Extra site documents .

<<thirdparty URL removed>>

Neil

Link to comment
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.

×
×
  • Create New...