#foswiki 2017-01-14,Sat

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
***ChanServ sets mode: +o cdot [07:26]
.................................................................... (idle for 5h37mn)
guytronAre there some magical rules about using table html in foswiki?
it seems like the editor is just destroying the markup
It's a 2x2 table, but the editor translates from the HTML I saved into |'s
and <p> tags, which then fall apart because each of the cells has a list in it
[13:03]
uebera||Why do you want to use HTML code for tables? Foswiki has support for tables out of the box, plus http://foswiki.org/Extensions/TablePlugin or http://foswiki.org/Extensions/MediaWikiTablePlugin [13:09]
FoswikiBot[ MediaWikiTablePlugin ] [13:09]
uebera||But from you comment, it looks like you're using the WYSIWYG editor and it "parsed" your own HTML code? [13:10]
guytronRight
I saved a less than, the word table and then a greaterthan
and then the editor ruined the table
[13:10]
uebera||You can abort/revert and use the "edit wikitext" functionality. But you might be out of luck regarding the table unless you declare it "immutable" (I wouldn't know by heart, don't use this)
I.e., whenever the topic is modified using the WYSIWYG editor, your own markup is in potential danger of getting mangled.
[13:11]
guytronYeah, I bailed on the edit
but this now means I can never edit that page again
(which is not really what I want)
[13:12]
uebera||No, you can use the "edit wikitext" (see bottom of the page). [13:13]
guytronOh my [13:13]
uebera||But with a Wiki, especially regarding tables, it is *very* uncommon not to use the "native" formatting. [13:13]
guytronthere's more than one editor
Putting an unordered list in a table seems pretty upsetting with |'s as the table delimiters.
[13:14]
jastyeah, complex formatting inside a table made from wiki markup is kind of tricky [13:16]
guytronit's a 2x2 table, with an unordred list on each cell
Is there a non-table way to layout pages?
[13:16]
jastseveral, but this is web development stuff and, unfortunately, depends on what browsers you want to support etc.
web developers haven't really used tables purely for layout purposes in many years...
[13:17]
guytronlol
Confluence has "sections"
[13:18]
jastbut the alternatives used for a long time are not very friendly... and the stuff that does work and doesn't kill brain cells is not fully supported in Internet Explorer before version 11 [13:18]
guytronyou say "this is a row, or something" and then you say "I want this row to contain 2 columns" and your page has a layout [13:18]
jastthere's a plugin for grid layouts: http://foswiki.org/Extensions/GridLayoutPlugin
you'll want to skip straight to the examples to see if it's for you
[13:19]
guytronI skipped straight to the "you have to manually include the CSS even though I'm a plugin"
looks like the kind of thing I want though
[13:20]
jastwhere does it say that?
looked at the source code, using the macros automatically adds the CSS
[13:21]
guytron"Note further that you will need to load the grid.css manually to make use of the CSS classes by adding below line anywhere to the page:" [13:21]
jastthat line is about when you want to do things manually without the macros [13:22]
guytrono_O
why would that be the first thing in a document about a plugin that provides those macros?
[13:22]
jastI guess the developer had web developers in mind [13:23]
guytronIs that really the audience for this document?
meh
[13:23]
uebera||If you only have few unordered lists you need to put in a table, "| <ul><li>ul1<li>ul2</ul> |" could work, though. I.e., only use HTML tags were you absolutely need them. [13:24]
guytronguytron installs the plugin and moves on [13:24]
jastanyway, with the macros it's pretty straightforward for simple layouts [13:24]
guytrondoes a table made of pipes even let me set valign? [13:24]
jastyes, though the syntax takes some getting used to :)
oh wait, you said valign, my mind falsely auto-corrected to something else
[13:25]
guytronwiki? [13:25]
uebera||See http://foswiki.org/Extensions/TablePlugin ("valign") [13:25]
jastvalign actually works, too, but only by using TablePlugin's magic for customizing tables (it's included with Foswiki, I think)
it can do a lot more to tables than you'll probably ever want to do :}
[13:26]
guytronWow
ok- 2 syntaxes for tables ... that's pretty crazy
[13:27]
jastit's an addition to TML (|abc|def|) tables, you put the %TABLE% macro right above it and then it applies to that table
it'd get pretty crazy if you added all that syntax into the vertical bars markup
[13:27]
guytronThat's for sure. [13:30]
jast%TABLE% is a decent compromise, if you ask me [13:31]
guytronthe plugin is enabled, but the example syntax doesn't seem to do anything - it just turns up in the rendered output
turns out only one of those two things were true...
[13:44]
jastcheck it's really running, have a look at .../System/InstalledPlugins and make sure it shows up in at least one of the sections after the first list [13:45]
guytronYeah- the plugin pane of bin/configure is trixy to navigate
and it seems like there's some odd caching going on 'cause sometimes I refresh a page and i get an older versoin
[13:46]
jastyou may have to 'save changes' in configure after installing a plugin
I don't quite recall the behaviour because I use the command line most of the time to install extensions
which is no less tricky, but at least I don't have to use the mouse ;)
[13:47]
guytroni'm running the vmware image, and using the shell there is the worst [13:47]
jastI'm not familiar with the specifics of the image, if there's an SSH server installed in it you can use something like PuTTY which is heaps better than using VMware's console
you can use copy and paste, for one...
[13:48]
guytronI
I'm not really sure I understand this "runs from shell and from webserver" dispatch stuff that's going on in these scripts, otherwise i'd have a go at moving some bits 'round
speaking of running that image - is there some plugin to let me export all the stuff I've done to the config/content/themes?
[13:50]
jastwell, inside the image it's a normal foswiki install. again, if there's an SSH server installed, you can use an SFTP/SCP client to copy out the files [13:53]
***ChanServ sets mode: +o gac410 [14:01]
guytronis everything stored in /var/wwww/foswiki though? [14:08]
uebera||regarding the "payload", yes. [14:17]
gac410guytron: you asked about a non-table way to layout pages - yes, the JQGridPlugin iirc
oops NO .... not that one. Looking
Foswiki:Extensions/GridLayoutPlugin
[14:19]
FoswikiBothttps://foswiki.org/Extensions/GridLayoutPlugin [ GridLayoutPlugin ] [14:20]
guytronhmm, that plugin does't do the math for me, if I say BEGINGRID BEGINCOL BEGINCOL ENDGRID it says "illegal width: 0"
I guess without a width it's just 100%, not 1/n
[14:25]
gac410yes, it's "n/12" layout. You need to provide a width on all but the last colunmn,
we use a pre-released version of it on Foswiki:Tasks and Foswiki:Development (we only use the css manually, not the GRID macros.) Someday we'll convert.
[14:31]
FoswikiBothttps://foswiki.org/Tasks [ WebHome ] https://foswiki.org/Development [ WebHome ] [14:33]
guytrongac410: it seems like there are sensible defaults for width though
If I say "a grid row with 2 items on it", each could be assumed to be 6/12, for example
[14:38]
gac410yes, it's a pretty flexible layout tool. Much easier than fiddling with tables. [14:39]
guytron(it does not behave in the way i'm describing, it prints something in red text for all viewers to see) [14:39]
gac410y, that would make the plugin quite a bit more complex. As written it can process the macros in page order as called by the foswiki core. For automatic layout it would need to post-process the entire page [14:44]
Anyway, it is what it is ;) [14:49]
..................... (idle for 1h40mn)
guytrongac410: but - fosswiki doesn't stream content anyway, it's all slurped in a big ball, so it doesn't really make a difference if the plugin does its thing at the end or per-line [16:29]
jasttrue, but this is about macro/plugin logic, not about output efficiency [16:31]
***ChanServ sets mode: +o cdot [16:32]
jastthe way it's implemented now, each macro can simply return a piece of output. if you want it to be smarter, instead the macros have to extract the text between each of them, save it for later, and do more processing at the end of the rendering process
quite a bit more error-prone to implement, considering the comparably minor advantages
[16:32]
guytronadvantages like it being nicer for the user [16:33]
jastsure
though in this case, "n equally-sized columns" isn't really the main use case for the plugin, I guess
[16:33]
guytronisn't it? [16:34]
jastso that's not something the author might have been thinking of [16:34]
guytronthe examples all have equal sizes [16:34]
jastwell, it's a 12-column grid, a common tool for layouts on the web
not in example 4, they don't
anyway, the idea of a 12-column grid is to give you flexibility for distributing things across your full width without getting too fancy. it's actually impossible in a 12-column grid to, for instance, have 7 equally wide columns across the full width.
(unless you distribute them with uneven spacing...)
[16:34]
FoswikiOnSlack1<cajund> Hi Folks, where is an appropriate place to ask a configuration question? [16:42]
gac410cdot: Item14265 looks like a very reasonable fix. Comments? Or wait for MichaelDaum to review [16:43]
FoswikiBothttps://foswiki.org/Tasks/Item14265 [ Item14265: NatEdit plugin leaves UI blocked after some save errors ] [16:43]
gac410cajund: Here is fine. (IRC or the slack mirroring to irc) [16:43]
FoswikiOnSlack1<cajund> Thanks. I suspect the fix is simple, I just can't seem to find it. [16:44]
cdotgac410: looks fine to me, but you know how protective Michael is. [16:45]
gac410yeah.. maybe I'll wait ;) [16:45]
FoswikiOnSlack1<cajund> So, I installed 2.1.2 on a Ubuntu box (12, I think - Apache 2.2). I used the .conf file generator and added the domain to the "URL Path" field.
<cajund> This all worked fine. Next, I went to set up short URL's and while the routing seems to work, the URL's in the page still have the domain in them.
<cajund> For example: `http://wiki.domain.com/wiki.domain.com/Main/WikiGroups`
<cajund> This, of course, isn't found.
<cajund> It's on a dedicated Virtual Host.
[16:46]
gac410Oh... the domain appears twice? That's strange. [16:48]
FoswikiOnSlack1<cajund> Is there a conf file somewhere where I can remove the "second" domain in the above links?
<cajund> Correct.
[16:48]
gac410what is {DefaultUrlHost} set to in bin/configure (or in lib/LocalSite.cfg ) [16:48]
FoswikiOnSlack1<cajund> If I revert the apache conf file, I get the normal links: `http://wiki.domain.com/bin/view/Main/WikiGroups`
<cajund> `http://wiki.domain.com`
<cajund> It _kinda_ seems like the bootstrapping process picked something up from the config when it was setting things up
[16:49]
gac410strange. And you generated the config with Foswiki:Support.ApacheConfigGenerator [16:50]
FoswikiBothttps://foswiki.org/Support.ApacheConfigGenerator [ ApacheConfigGenerator ] [16:50]
FoswikiOnSlack1<cajund> Right, but I altered it manually.
<cajund> When I removed the URL from the conf generator, the result was worse.
[16:50]
gac410The URLs are generated from the {DefaultUrlHost} [16:50]
FoswikiOnSlack1<cajund> None of the paths were generated correctly.
<cajund> I got paths like `http:///bin/view/Main/WikiGroups`
[16:50]
gac410It's been a really long time since I had an Apache 2.2 system avaliable to test with. [16:51]
FoswikiOnSlack1<cajund> Do you suspect an incompatibility? [16:51]
gac410Well Foswiki shouldn't really care about what server it's running on. It's all up to the web server configuration.
{DefaultUrlHost} essentially gets put into the base= url of the page. and everything is relative from there.
[16:52]
FoswikiOnSlack1<cajund> That would be my expectation.
<cajund> Right, but for some reason, the URL's are being generated with the assumption there is a directory underneath my DocRoot
[16:52]
gac410So if you "hover" over the URL, it's wrong, Or if you click it, it redirects to the wrong place. [16:54]
FoswikiOnSlack1<cajund> Actually, looking at the source, this may be a config issue. [16:54]
gac410If it's an apache config isue, then I'd expect that you are probably redirecting rather than the code generating the url incorrectly [16:54]
FoswikiOnSlack1<cajund> ```li> <a href="/bin/view/System/WelcomeGuest">WelcomeGuest</a> - for first time visitors </li```
<cajund> Yes.
<cajund> OK, I will spend some time with the config. I wonder if the Alias directive is not behaving.
[16:54]
gac410The ApacheConfigGenerator ought to generate a valid config - it's been pretty stable for a long time.
If you click the "Short URLs" box, and put just a "/" into the Url Path, that should give you URLs like yoursite.com/Main/WebHome
[16:55]
FoswikiOnSlack1<cajund> It seems to do a good job, but when I removed that URL Path value (I may have just used a slash), nothing was working.
<cajund> The result of the generator were the same as the changes that I made manually, the bootstrap process didn't like it, tho.
[16:56]
gac410URL path should just be a / for shortest URLs. Also need to make sure the file system path is corrrect too.
What didn't the bootstrap like? As long as mod_rewrite is enabled, and you are not behind a proxy, the bootstrap should be working pretty well.
We found a couple of issues that will be fixed in 2.1.3 - bootstrap fails if mod_rewrite is disabled. And it can't handle a proxy configuration
[16:57]
FoswikiOnSlack1<cajund> If I put a '/' in the URL Path, and bootstrapped a fresh install, all of the URL's melted down.
<cajund> I can try again.
[16:59]
gac410What do you mean by "melted down" [17:00]
FoswikiOnSlack1<cajund> All of the links that were generated in the HTML were incorrect.
<cajund> No styles, images, etc.
<cajund> Trying to reproduce now.
[17:00]
<cajund> BTW, I did need to replace `VirtualHost *>` with `<VirtualHost *:80` Might be a local issue
<cajund> Son of a gun, it's working now. Maybe I missed something in the config the first time.
[17:07]
gac410;) [17:09]
FoswikiOnSlack1<cajund> Thanks for your help on a Sat morning. [17:09]
gac410no prob. Kept me from doing some laundry ;D [17:09]
FoswikiOnSlack1<cajund> ;) [17:10]
...... (idle for 26mn)
gac410cajund - Note that on ubuntu 12.04, it goes end of life in April. I just tried an install of foswiki, and there are some email related version dependencies that cannot be satisfied. [17:36]
FoswikiOnSlack1<cajund> Thanks for the info. We are starting a migration project, the FOSWiki software will be used for documentation for the app, etc. It's a nice product, appreciate the work that you guys have done. [17:44]
gac410thanks [17:44]
..... (idle for 20mn)
***ChanServ sets mode: +o Lynnwood [18:04]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)