Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2013-11-10 14:02:05

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

The problem will be thousands of entries, and the navigation menus I have looked at will be very large. I’m already at the php TEXT limit. I could install multiple menu systems on static pages… but that would also be a pain to implement.

Maybe a database for all ships. Another for all empires.

I think having a menu system I could display on only certain pages would work and not need multiple databases.

Offline

#17 2013-11-10 14:24:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp 4.4.1, too much code on page, save blanks template

Hi Jim, Maybe you should rethink about having all entries in the menu as that would also be a problem with handheld devices such as iphones, samsung etc.

Category or section page(s) with linked titles might be more appropriate for such a large database.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#18 2013-11-10 16:03:24

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

I have tried to look at the weather channel’s web site on my smartphone… Won’t load it.

I’ll be checking my 10.1 inch asus tft300 android to see if it can load my sites.

I know that tablets and smartphones are replacing desktop computers in many people’s hearts. But I prefer desktops for most of what I do.

Times change, I used to own a Timex Sinclair ZX-81 with 1 kilobyte of memory. I don’t see my sites as being available to smart phones.

Offline

#19 2013-11-10 17:46:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: txp 4.4.1, too much code on page, save blanks template

I can see what you are saying re sites on smart phones which is what I mentioned but tablets are ok platforms to replace the desktop for many users who just use the computer for text writing, browsing and email. I guess that those should not be excluded from any site’s audience.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#20 2013-11-12 21:33:19

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

The planet maps are 1200×900 pixels. The large starship deckplans are much larger.

I think a 10.1” tablet should see them okay. I have read that tablets and smart phones’ browsers shrink the picture.

Offline

#21 2014-06-10 18:04:08

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

uli wrote #276293:

The attempt is in the right direction, just use forms (Admin > Presentation > Forms), not files, and integrate their contents with output_form tags like <txp:output_form form="your_js" /> into your page template.

Is there a limit on how many of these I can place into my site as forms ?

Thanks !

Offline

#22 2014-06-10 18:06:42

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,797
GitHub

Re: txp 4.4.1, too much code on page, save blanks template

I’m not an expert at MySQL but as long as you stay under 64k per form, you should be OK to have as many forms as you want. Each form is a row in a database table, and as such you can just keep adding rows (forms).

I could, of course, be talking horsepoop – so someone please correct me if I am.

Online

#23 2014-06-10 18:25:37

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

I don’t think it will be massive numbers of forms… maybe no more than 300 of them.

Offline

#24 2014-06-15 17:05:37

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: txp 4.4.1, too much code on page, save blanks template

JimJoe wrote #281349:

I don’t think it will be massive numbers of forms… maybe no more than 300 of them.

Technically there isn’t a limit you’ll ever reach, but you have to keep in mind that it’ll show all the form names in a list on the forms tab. Managing 300 forms there may not be practical.

Offline

#25 2014-06-15 20:21:10

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

The 300 is an estimate, it may be fewer, or more.

If I need to do it, I’ll handle it. I’m retired now and have more time to work on my sites.

Offline

#26 2015-02-05 21:24:41

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

uli wrote #276293:

The attempt is in the right direction, just use forms (Admin > Presentation > Forms), not files, and integrate their contents with output_form tags like <txp:output_form form="your_js" /> into your page template.

I recently tried to put two of these on the same article, only one displays. I am using these forms to connect articles about one town, or one star ship, together. So it isn’t in the page template.

Is there a way to have two or more of these on one article ?

Thanks !

Offline

#27 2015-02-05 22:35:03

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: txp 4.4.1, too much code on page, save blanks template

JimJoe wrote #288053:

Is there a way to have two or more of these on one article ?

Yes, no problem. Some things that might be wrong:

  • Same form name used twice in your article (duplicate output, too long to distinguish)
  • Same scripts in form 2 as in form 1 (again: duplicate output, too long to distinguish)
  • One form is empty
  • Scripts in form 2 inhibit execution of those in form 1 (or was it vice versa?)

There may be even more reasons …


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#28 2015-02-05 22:44:25

JimJoe
Member
From: United States
Registered: 2010-01-30
Posts: 573
Website

Re: txp 4.4.1, too much code on page, save blanks template

No scripts. The forms had different names. Both contain only links to other articles.

One had about 15 links in it, the other has about 5 links in it.

Offline

#29 2015-02-05 23:34:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,220
Website GitHub

Re: txp 4.4.1, too much code on page, save blanks template

You say you’re putting them in articles.

Check the source code of the page as it is output in the browser to see if it is actually being parsed. Sometimes textile will convert it into a string and not parse it as a tag, especially if you’ve not left enough space around the tag. Usually if you need to include tags in the body field, you need to do it like this:

(a blank line)
 <txp:output_form form="your-form-name" />
(another blank line)

And you need to start the line with a space in front of the opening <txp:…. That should prevent textile from converting it into a well-formed paragraph.

If you still have no luck, try starting the line with:

notextile.  <txp:output_form form="your-form-name" />

And, of course, check your syntax in your article, your forms and the page template. 9 times out of 10 I find I’ve forgotten to close some tag, or I have closed a container tag where I shouldn’t have…


TXP Builders – finely-crafted code, design and txp

Online

#30 2015-02-05 23:42:18

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: txp 4.4.1, too much code on page, save blanks template

uli wrote #288054:

There may be even more reasons …

  • The links’ code is correct? (Faulty code might not be displayed)
  • The forms are both saved and not empty?
  • You’ve copied and pasted their names to the tags in your article?
  • The type of your forms is “Miscellaneous” (safest type for your use)

4 times yes? Please post your txp:output_form tags. If in doubt about the links’ code please post them here.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB