Dec 04, 2008, 12:30 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: [Template] Blocks  (Read 8585 times)
0 Members and 1 Guest are viewing this topic.
sottwell
Documentation Team
*
Posts: 8,170



WWW
« on: Feb 23, 2006, 08:01 AM »

I didn't check this for IE, it probably will need a bit of CSS tweaking to behave properly in IE.

This template uses four TVs to control the content in different sections, so it can be customized on a per-page basis if desired.




* Blocks.zip (42.21 KB - downloaded 664 times.)

* blocks.jpg (46.92 KB, 250x207 - viewed 2968 times.)
« Last Edit: Feb 23, 2006, 08:09 AM by sottwell » Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #1 on: Feb 23, 2006, 08:18 AM »

I have one of my website running using this template as well.
http://www.ekkon.co.id Wink
Logged

sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #2 on: Feb 23, 2006, 10:28 AM »

Classy!
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #3 on: Feb 23, 2006, 10:29 AM »

By the way, the picture on the right is of my boys, 25 years ago!  Their Dad worked for Pfizer.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #4 on: Feb 23, 2006, 04:19 PM »

Cool,

To be honest, I'm an enemy for kids. None of them will like me, and in fact, it feels awkward to me playing and hanging out with kids. Weird isn't it?  Undecided
Logged

sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #5 on: Feb 23, 2006, 11:28 PM »

Truth is, I'm not overly fond of them myself.  Infants are nice, but it's kind of like the case with kittens...

The only problem
With a kitten is that
It eventually
Becomes a cat.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
MadeMyDay
Moderators
*
Posts: 842



WWW
« Reply #6 on: Feb 24, 2006, 01:14 AM »

Wendy, the link is broken  Cool
Logged

jadedknight
Jr. Member
*
Posts: 12


Graphic Artist


WWW
« Reply #7 on: Feb 27, 2006, 09:24 PM »

I dont understand how to install it and I read the install.txt
Logged

ph33r t3h b34v3r
Djamoer
Testers
*
Posts: 1,492

No one can limit a man other than the man himself.


WWW
« Reply #8 on: Feb 27, 2006, 11:34 PM »

Wendy, the link is broken  Cool

Browken? Are you serious? I can access it though, let me know if it's still broken.

Susan any thought on helping jadedknight  Wink
Logged

sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #9 on: Feb 28, 2006, 04:04 AM »

I beg pardon up front in case this is too simplistic, but I'm not sure which area troubles you.

1.  Unzip the archive and upload the resulting Blocks folder to your sites' assets/templates folder.

2. Log in to your site's Manager, go to Resources, Manage Resources.  Select the Templates tab, and Create new.  Give the template a name (such as Blocks) and a brief description (two-column blocky template).  Open the file Blocks.templates.html (from your local copy of the Blocks folder) in a text editor.  Copy/paste the entire contents of that file into the textarea of the new template form.  Save.

3. Go to the Template Variables tab and create a new TV.  Fill out the form like this:
Code:
Variable Name:          blocksTopLeft
Caption:                    Blocks TopLeft
Description:              content for top left block of Blocks template
Input type:                Textarea
Input Option Values:  (leave blank)
Default Value:            (what you want to show in this block, I used <h2>[(site_name)]</h2>
<h3>[*pagetitle*]</h3>)

At the bottom in the section Template Access, check the box for the template you just created.

Now create the other Template Variables in the same way, naming them as specified in the INSTALL.TXT file.
Be sure to check the box in Template Access for your new template each time!
Another issue, make sure you copy/paste the image tags exactly for the blocksGallery TV.  If there are any spaces or carriage returns between the tags, it will break the layout.

4.  Now go to the Chunks tab and create a new chunk, name it Footer, and put what you want to be at the foot of each page.

Now go to Administration, System configuration and set the default template to be your new template.  Or, you can set the template of individual pages to be your new template.

When you edit each page, under the Document content editor part you will find a textarea for each of the TVs you created. You can edit the content for each page here. If you don't see them, make sure that you named them the same as what is used in the tags in the template (like [*blocksTopLeft*]) and that you have checked the box for the template in the Template Access section of the TV.


Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
MadeMyDay
Moderators
*
Posts: 842



WWW
« Reply #10 on: Feb 28, 2006, 04:49 AM »

Quote
Browken? Are you serious? I can access it though, let me know if it's still broken.

Hi Wendy, everything all right now Smiley
Logged

jadedknight
Jr. Member
*
Posts: 12


Graphic Artist


WWW
« Reply #11 on: Mar 01, 2006, 08:20 PM »

Yeah I am sorry. I still only half understand how to use  the template system. I added it. And its halfway there. I dont understanbd how to add a menu. And other thingd  Embarrassed You can see what I have done so far here> http://www.wiredwaterloo.com ANY help will be greatly appreciated
Logged

ph33r t3h b34v3r
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #12 on: Mar 02, 2006, 12:54 AM »

Do you really want your menu bar to be at the top of the left sidebar, instead of in the bar at the top of the main content?
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
jadedknight
Jr. Member
*
Posts: 12


Graphic Artist


WWW
« Reply #13 on: Mar 02, 2006, 07:07 AM »

Good point. I would like a menu to go across the wide bloack at the top.
Logged

ph33r t3h b34v3r
chanh
Guest
« Reply #14 on: Mar 02, 2006, 09:17 AM »

Susan,

I also donwload your "Blocks" template and install it here:
http://www.chanh.blogdns.com/modx/testing.html

I am not sure how to make the gallery to show up like you have in your screenshot.

I copy and paste from the install.txt into the TV as instructed but it shows nothing.

What am I missing?

Thanks
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!