Re: Github Flavour or Multimarkdown

2015-09-14 Thread The Editor
Yep. I'm following how you have it setup. A great idea.

Cheers,
Dan

On Mon, Sep 14, 2015 at 1:07 PM 'jacmgr' via BoltWire <
boltwire@googlegroups.com> wrote:

> It will have its uses, but remember it probably won't do boltwire markup
> within the actual markdown page.  For me that is not too much of an issue
> since I can still do cool boltwire stuff in the header and footer of the
> markdown page.
>
> I'll post some changes in a few days after I try some of Dan's ideas above.
>
>
> On Monday, September 14, 2015 at 10:21:36 AM UTC-4, Dan wrote:
>
>> I'm pretty confident we can get this script to function as an easy
>> install "standard" BoltWire plugin. Meaning you could call it from the
>> farm, field, or specific pages easily. We can revisit this question once I
>> can take a better look at how jacmgr has set it up.
>>
>> I really like the idea of having the parser user definable!
>>
>> Cheers,
>>
> Dan
>>
>
>>
>>
>> On Mon, Sep 14, 2015 at 1:23 AM TMurNGon  wrote:
>>
>>> Hi jacmgr,
>>>
>>> Thanks for the effort, it seems to work!
>>>
>>> I'm not sure how to download the add-in, but I've tried it on your demo
>>> site and all seems well.
>>> It would be great to have a solid version of this available in Boltwire.
>>>
>>> From my perspective the requirements for this would be the ability to
>>> enable/disable the add-in on a *farm, field or page basis* (depending
>>> on requirement).
>>> That way I would not have to be concerned with editor users having to
>>> learn/remember what to do to get a page to function properly.
>>> This would imply that all pages/zones within the scope of the setting
>>> would render the markdown correctly without additional settings.
>>>
>>> Just a thought @Dan:  If this becomes a modular enough solution it would
>>> basically open the way for Boltwire to support just about any markdown
>>> flavour with the correct add-in.
>>>
>>> Jacmgr I'd really appreciate any effort you put towards this.
>>> Have a good day.
>>> Jan
>>>
>>>
>>>
>>> On Sunday, 13 September 2015 05:25:05 UTC+2, jacmgr wrote:

 You can try it now and download it at:
 http://jhinline.com/BW50/markdown5

 DAN: Question:  Since I use my own loadpage; how can i get my own meta
 data from the page and insert them into the boltwore data vars for the page

 JAN:  It basically works to display markdown files in the main zone of
 a site.  Download and try it.  You can add data variables to the pages
 using boltwire.  Some issues remain in getting the files to proporl;y show
 up in a search result template.

 If you want me to proceed further on it, please give it a good review
 and list some specific things it needs to do.  After that I'll think about
 it and try to learn more about boltwire internals.
 .

 On Tuesday, September 8, 2015 at 10:35:23 AM UTC-4, TMurNGon wrote:
>
> This is really great news.
> Looking forward to using it.
>
> Thanks for the effort.
>
> On Tuesday, 8 September 2015 16:17:04 UTC+2, jacmgr wrote:
>>
>> Dan,
>>
>> I worked something out for latest BW, but it is hackish and not ready
>> for prime time.  It does work and you can see it here (but i don't have 
>> the
>> download up there and the "how I did it docs are not updated for for
>> BW5.X.  So don;t take the documentation as serious, it just demonstrates
>> that I have a flavor of markdown working.  Once I work out some more 
>> kinks
>> I will post code.
>>
>> Note that I am using a mygetzone function, a myloadpage function, and
>> a toolmap to change the include function to my own include function. In
>> those files, I essentially just check if it is a markdown page, pass it
>> through an existing php markdown processor and then return the processed
>> outpout to regular boltwire.
>>
>> What I need to know if possible:
>>
>> 1) How can I from within my plugin function, turn off a specific BW
>> Markup.  In particular the markup for BW "blockquotes".  After I load a
>> markdown page, I don't want that markup line processed.  I don't want to
>> change the file markups.php.  I just want to turn off or add a few 
>> markups
>> on the fly so to speak just after the page is loaded.
>>
>> 2) How can I turn off ALL BW markups, so that when the
>> domarkup/domarkuptable happens inside boltwire, essentially nothing will
>> happen?
>>
>> 3) The markdown page does  not have BW style data variables.  It does
>> however have a section of its own data variables.  When I load that
>> markdown file, I can get those markdown page variables into an array.  
>> Can
>> you suggest a way to get those into BW data variables.  I assume that 
>> there
>> is some function I can use, that I can substitute my own for?
>>
>> 4) Note that if I get it working reliable, should be able to use any
>> parser I

Re: Github Flavour or Multimarkdown

2015-09-14 Thread 'jacmgr' via BoltWire
It will have its uses, but remember it probably won't do boltwire markup 
within the actual markdown page.  For me that is not too much of an issue 
since I can still do cool boltwire stuff in the header and footer of the 
markdown page.
 
I'll post some changes in a few days after I try some of Dan's ideas above.
 
 
On Monday, September 14, 2015 at 10:21:36 AM UTC-4, Dan wrote:

> I'm pretty confident we can get this script to function as an easy install 
> "standard" BoltWire plugin. Meaning you could call it from the farm, field, 
> or specific pages easily. We can revisit this question once I can take a 
> better look at how jacmgr has set it up.
>
> I really like the idea of having the parser user definable!
>
> Cheers,
> Dan
>
>
> On Mon, Sep 14, 2015 at 1:23 AM TMurNGon > 
> wrote:
>
>> Hi jacmgr,
>>
>> Thanks for the effort, it seems to work!
>>
>> I'm not sure how to download the add-in, but I've tried it on your demo 
>> site and all seems well.  
>> It would be great to have a solid version of this available in Boltwire.
>>
>> From my perspective the requirements for this would be the ability to 
>> enable/disable the add-in on a *farm, field or page basis* (depending on 
>> requirement).  
>> That way I would not have to be concerned with editor users having to 
>> learn/remember what to do to get a page to function properly. 
>> This would imply that all pages/zones within the scope of the setting 
>> would render the markdown correctly without additional settings.
>>
>> Just a thought @Dan:  If this becomes a modular enough solution it would 
>> basically open the way for Boltwire to support just about any markdown 
>> flavour with the correct add-in.
>>
>> Jacmgr I'd really appreciate any effort you put towards this.
>> Have a good day.
>> Jan
>>
>>
>>
>> On Sunday, 13 September 2015 05:25:05 UTC+2, jacmgr wrote:
>>>
>>> You can try it now and download it at:  
>>> http://jhinline.com/BW50/markdown5
>>>
>>> DAN: Question:  Since I use my own loadpage; how can i get my own meta 
>>> data from the page and insert them into the boltwore data vars for the page
>>>
>>> JAN:  It basically works to display markdown files in the main zone of a 
>>> site.  Download and try it.  You can add data variables to the pages using 
>>> boltwire.  Some issues remain in getting the files to proporl;y show up in 
>>> a search result template.
>>>
>>> If you want me to proceed further on it, please give it a good review 
>>> and list some specific things it needs to do.  After that I'll think about 
>>> it and try to learn more about boltwire internals.
>>> .
>>>
>>> On Tuesday, September 8, 2015 at 10:35:23 AM UTC-4, TMurNGon wrote:

 This is really great news.
 Looking forward to using it.

 Thanks for the effort.

 On Tuesday, 8 September 2015 16:17:04 UTC+2, jacmgr wrote:
>
> Dan,
>  
> I worked something out for latest BW, but it is hackish and not ready 
> for prime time.  It does work and you can see it here (but i don't have 
> the 
> download up there and the "how I did it docs are not updated for for 
> BW5.X.  So don;t take the documentation as serious, it just demonstrates 
> that I have a flavor of markdown working.  Once I work out some more 
> kinks 
> I will post code.
>  
> Note that I am using a mygetzone function, a myloadpage function, and 
> a toolmap to change the include function to my own include function. In 
> those files, I essentially just check if it is a markdown page, pass it 
> through an existing php markdown processor and then return the processed 
> outpout to regular boltwire.
>  
> What I need to know if possible:
>  
> 1) How can I from within my plugin function, turn off a specific BW 
> Markup.  In particular the markup for BW "blockquotes".  After I load a 
> markdown page, I don't want that markup line processed.  I don't want to 
> change the file markups.php.  I just want to turn off or add a few 
> markups 
> on the fly so to speak just after the page is loaded.
>  
> 2) How can I turn off ALL BW markups, so that when the 
> domarkup/domarkuptable happens inside boltwire, essentially nothing will 
> happen?
>  
> 3) The markdown page does  not have BW style data variables.  It does 
> however have a section of its own data variables.  When I load that 
> markdown file, I can get those markdown page variables into an array.  
> Can 
> you suggest a way to get those into BW data variables.  I assume that 
> there 
> is some function I can use, that I can substitute my own for?
>  
> 4) Note that if I get it working reliable, should be able to use any 
> parser I want by just swapping out a parser function and leaving 
> everything 
> else. the same.
>  
>  
> Thankx
>  
>  
>  
>  
>
> On Friday, September 4, 2015 at 8:06:44 AM UTC-4, ja

Re: single site install

2015-09-14 Thread 'Brian Platt' via BoltWire
Hi I managed to get it working through a bit of trial and error and it's
done as per jacmgr's howto, thanks for your help.

On Mon, Sep 14, 2015 at 3:37 PM, The Editor  wrote:

> Thanks jacmgr for the great tutorial. :)
>
> Brian -- do let us know if you need any additional help...
>
> Cheers,
> Dan
>
> On Fri, Sep 11, 2015 at 8:30 PM 'jacmgr' via BoltWire <
> boltwire@googlegroups.com> wrote:
>
>> HI Brian, you are almost there.   On the boltwire documentation
>> installation page (http://www.boltwire.com/index.php?p=docs.start.install)
>> you have put it in the correct place for now.   If you have this:*
>> /boltwire/boltwire/start.php *then you need to get rid of one level of
>> boltwire.  You want all the files under* /boltwire* so it looks like
>> this:
>> */boltwire/start.php*
>> Then follow the instruction on the page and go to *http://your
>>  host /boltwire/start.php*  and follow the instructions to
>> create your first site.  Simply call it "*mysite*" for now.  You
>> probably had to put an admin password.  If that all works, then you are
>> good to go for the *next step to make a new site in the root.*
>>
>> STEP 1:
>> Copy */mysite/index.php* to the root folder as */index.php*.  Then
>> Edit the /index.php to modify the location of boltwire as follows and
>> save it.
>>
>> > $BOLTadmin = 'admin';
>> *//   *$boltwire = '../boltwire';  *//comment out this line*
>> *$boltwire = 'boltwire'; //ADD this line.*
>> include_once("$boltwire/scripts/engine.php");
>>
>> AND SAVE THAT FILE.
>>
>>
>> STEP 2:
>> GOTO http://yoursitename   and boltwire should fire up.  If it does
>> choose the "register" link and register username "admin" and an 8 letter
>> password.
>>
>> That's it.
>>
>> Step 3: Delete the folder "mysite"; or keep it!  You can run multiple
>> sites.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "BoltWire" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to boltwire+unsubscr...@googlegroups.com.
>> To post to this group, send email to boltwire@googlegroups.com.
>> Visit this group at http://groups.google.com/group/boltwire.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "BoltWire" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/boltwire/off7m_yFWMk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> boltwire+unsubscr...@googlegroups.com.
> To post to this group, send email to boltwire@googlegroups.com.
> Visit this group at http://groups.google.com/group/boltwire.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to boltwire+unsubscr...@googlegroups.com.
To post to this group, send email to boltwire@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.


Re: single site install

2015-09-14 Thread The Editor
Thanks jacmgr for the great tutorial. :)

Brian -- do let us know if you need any additional help...

Cheers,
Dan

On Fri, Sep 11, 2015 at 8:30 PM 'jacmgr' via BoltWire <
boltwire@googlegroups.com> wrote:

> HI Brian, you are almost there.   On the boltwire documentation
> installation page (http://www.boltwire.com/index.php?p=docs.start.install)
> you have put it in the correct place for now.   If you have this:*
> /boltwire/boltwire/start.php *then you need to get rid of one level of
> boltwire.  You want all the files under* /boltwire* so it looks like
> this:
> */boltwire/start.php*
> Then follow the instruction on the page and go to *http://your
>  host /boltwire/start.php*  and follow the instructions to
> create your first site.  Simply call it "*mysite*" for now.  You probably
> had to put an admin password.  If that all works, then you are good to go
> for the *next step to make a new site in the root.*
>
> STEP 1:
> Copy */mysite/index.php* to the root folder as */index.php*.  Then
> Edit the /index.php to modify the location of boltwire as follows and save
> it.
>
>  $BOLTadmin = 'admin';
> *//   *$boltwire = '../boltwire';  *//comment out this line*
> *$boltwire = 'boltwire'; //ADD this line.*
> include_once("$boltwire/scripts/engine.php");
>
> AND SAVE THAT FILE.
>
>
> STEP 2:
> GOTO http://yoursitename   and boltwire should fire up.  If it does
> choose the "register" link and register username "admin" and an 8 letter
> password.
>
> That's it.
>
> Step 3: Delete the folder "mysite"; or keep it!  You can run multiple
> sites.
>
> --
> You received this message because you are subscribed to the Google Groups
> "BoltWire" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to boltwire+unsubscr...@googlegroups.com.
> To post to this group, send email to boltwire@googlegroups.com.
> Visit this group at http://groups.google.com/group/boltwire.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to boltwire+unsubscr...@googlegroups.com.
To post to this group, send email to boltwire@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.


Re: Github Flavour or Multimarkdown

2015-09-14 Thread The Editor
I'm pretty confident we can get this script to function as an easy install
"standard" BoltWire plugin. Meaning you could call it from the farm, field,
or specific pages easily. We can revisit this question once I can take a
better look at how jacmgr has set it up.

I really like the idea of having the parser user definable!

Cheers,
Dan


On Mon, Sep 14, 2015 at 1:23 AM TMurNGon  wrote:

> Hi jacmgr,
>
> Thanks for the effort, it seems to work!
>
> I'm not sure how to download the add-in, but I've tried it on your demo
> site and all seems well.
> It would be great to have a solid version of this available in Boltwire.
>
> From my perspective the requirements for this would be the ability to
> enable/disable the add-in on a *farm, field or page basis* (depending on
> requirement).
> That way I would not have to be concerned with editor users having to
> learn/remember what to do to get a page to function properly.
> This would imply that all pages/zones within the scope of the setting
> would render the markdown correctly without additional settings.
>
> Just a thought @Dan:  If this becomes a modular enough solution it would
> basically open the way for Boltwire to support just about any markdown
> flavour with the correct add-in.
>
> Jacmgr I'd really appreciate any effort you put towards this.
> Have a good day.
> Jan
>
>
>
> On Sunday, 13 September 2015 05:25:05 UTC+2, jacmgr wrote:
>>
>> You can try it now and download it at:
>> http://jhinline.com/BW50/markdown5
>>
>> DAN: Question:  Since I use my own loadpage; how can i get my own meta
>> data from the page and insert them into the boltwore data vars for the page
>>
>> JAN:  It basically works to display markdown files in the main zone of a
>> site.  Download and try it.  You can add data variables to the pages using
>> boltwire.  Some issues remain in getting the files to proporl;y show up in
>> a search result template.
>>
>> If you want me to proceed further on it, please give it a good review and
>> list some specific things it needs to do.  After that I'll think about it
>> and try to learn more about boltwire internals.
>> .
>>
>> On Tuesday, September 8, 2015 at 10:35:23 AM UTC-4, TMurNGon wrote:
>>>
>>> This is really great news.
>>> Looking forward to using it.
>>>
>>> Thanks for the effort.
>>>
>>> On Tuesday, 8 September 2015 16:17:04 UTC+2, jacmgr wrote:

 Dan,

 I worked something out for latest BW, but it is hackish and not ready
 for prime time.  It does work and you can see it here (but i don't have the
 download up there and the "how I did it docs are not updated for for
 BW5.X.  So don;t take the documentation as serious, it just demonstrates
 that I have a flavor of markdown working.  Once I work out some more kinks
 I will post code.

 Note that I am using a mygetzone function, a myloadpage function, and a
 toolmap to change the include function to my own include function. In those
 files, I essentially just check if it is a markdown page, pass it through
 an existing php markdown processor and then return the processed outpout to
 regular boltwire.

 What I need to know if possible:

 1) How can I from within my plugin function, turn off a specific BW
 Markup.  In particular the markup for BW "blockquotes".  After I load a
 markdown page, I don't want that markup line processed.  I don't want to
 change the file markups.php.  I just want to turn off or add a few markups
 on the fly so to speak just after the page is loaded.

 2) How can I turn off ALL BW markups, so that when the
 domarkup/domarkuptable happens inside boltwire, essentially nothing will
 happen?

 3) The markdown page does  not have BW style data variables.  It does
 however have a section of its own data variables.  When I load that
 markdown file, I can get those markdown page variables into an array.  Can
 you suggest a way to get those into BW data variables.  I assume that there
 is some function I can use, that I can substitute my own for?

 4) Note that if I get it working reliable, should be able to use any
 parser I want by just swapping out a parser function and leaving everything
 else. the same.


 Thankx





 On Friday, September 4, 2015 at 8:06:44 AM UTC-4, jacmgr wrote:

> OK. I downloaded latest BW and started messing around. I have the
> plugin working in general; but still some glitches to work out related to
> BW5.  I'll give an update on Tuesday next week.
>
> On Wednesday, September 2, 2015 at 11:59:06 AM UTC-4, Dan wrote:
>
>> Please get it to work with the current version if possible. Happy to
>> give any help I can updating it. :)
>>
>> Dan
>>
>> On Wed, Sep 2, 2015 at 7:24 AM 'jacmgr' via BoltWire <
>> bolt...@googlegroups.com> wrote:
>>
>>> I originally hacked together that plugin a long time

Re: Github Flavour or Multimarkdown

2015-09-14 Thread The Editor
I should add about the data and page vars, that you could conceivably use
BoltWire's built in capabilities as long as your page load function only
uses the section above the ~data~ delimiter in the page source code. You
can see how that is handled in the default loadpage function.

Then, to get your page and data vars defined for a given page, you only
need to call the following function in you myBOLTgetzone function for the
main zone:

BOLTvarCache('', $page);

Cheers,
Dan

On Mon, Sep 14, 2015 at 9:13 AM The Editor  wrote:

> To define page variables is similar to data vars, only without the colon:
>
> $BOLTvar['#'][$page][$f] = $v;
>
> You will need to trigger some way to define those vars, possibly in the
> myBOLTgetzone function.
>
> Cheers,
> Dan
>
>
> On Sat, Sep 12, 2015 at 10:25 PM 'jacmgr' via BoltWire <
> boltwire@googlegroups.com> wrote:
>
>>
>> DAN: Question:  Since I use my own loadpage; how can i get my own meta
>> data from the page and insert them into the boltwore data vars for the page
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to boltwire+unsubscr...@googlegroups.com.
To post to this group, send email to boltwire@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.


Re: Github Flavour or Multimarkdown

2015-09-14 Thread The Editor
To define page variables is similar to data vars, only without the colon:

$BOLTvar['#'][$page][$f] = $v;

You will need to trigger some way to define those vars, possibly in the
myBOLTgetzone function.

Cheers,
Dan


On Sat, Sep 12, 2015 at 10:25 PM 'jacmgr' via BoltWire <
boltwire@googlegroups.com> wrote:

>
> DAN: Question:  Since I use my own loadpage; how can i get my own meta
> data from the page and insert them into the boltwore data vars for the page
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to boltwire+unsubscr...@googlegroups.com.
To post to this group, send email to boltwire@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.


Re: Github Flavour or Multimarkdown

2015-09-14 Thread The Editor
Sorry about the delay in getting back to you. I was out of town most of
last week with no internet access. But it looks like you are making some
great progress. I'm excited!

As for your questions:

1) Here's the doc info on the MarkUp function in BoltWire's library
function, on how to modify the markup table:

TO CHANGE A MARKUP RULE: MarkUp('order', 'rule', '/pattern/', 'output');
TO DELETE A MARKUP RULE SET PATTERN TO ''.
TO INSERT MARKUP SET RULE TO 'newrule < oldrule'.

So to disable the blockquote rules, try putting this in your plugin:

MarkUp('symbols', 'indent1', '');
MarkUp('symbols', 'indent2', '');

2) Can you just escape the processed content you return from the
myBOLTgetzone function? Something like this:

return BOLTescape($content);

That should prevent any processing...

As for resettting the entire Markup Table you could try putting this in a
plugin:

global $MarkUpTable;
$MarkUpTable = array();

3) Yes, you should be able to define data vars using this format:

$BOLTvar['#'][$page][":$f"] = $v;

So if you can trigger a page to get its vars processed and defined, they
should be available as normal data vars thereafter through the rest of the
page rendering.

4) Very good idea. Once you have it functional, I'll take a peek at the
code and see if we can streamline the installation process--perhaps getting
it down to just one plugin file plus a definable parser. This could be
really cool!!!

Cheers,
Dan


On Tue, Sep 8, 2015 at 9:17 AM 'jacmgr' via BoltWire <
boltwire@googlegroups.com> wrote:

> Dan,
>
> I worked something out for latest BW, but it is hackish and not ready for
> prime time.  It does work and you can see it here (but i don't have the
> download up there and the "how I did it docs are not updated for for
> BW5.X.  So don;t take the documentation as serious, it just demonstrates
> that I have a flavor of markdown working.  Once I work out some more kinks
> I will post code.
>
> Note that I am using a mygetzone function, a myloadpage function, and a
> toolmap to change the include function to my own include function. In those
> files, I essentially just check if it is a markdown page, pass it through
> an existing php markdown processor and then return the processed outpout to
> regular boltwire.
>
> What I need to know if possible:
>
> 1) How can I from within my plugin function, turn off a specific BW
> Markup.  In particular the markup for BW "blockquotes".  After I load a
> markdown page, I don't want that markup line processed.  I don't want to
> change the file markups.php.  I just want to turn off or add a few markups
> on the fly so to speak just after the page is loaded.
>
> 2) How can I turn off ALL BW markups, so that when the
> domarkup/domarkuptable happens inside boltwire, essentially nothing will
> happen?
>
> 3) The markdown page does  not have BW style data variables.  It does
> however have a section of its own data variables.  When I load that
> markdown file, I can get those markdown page variables into an array.  Can
> you suggest a way to get those into BW data variables.  I assume that there
> is some function I can use, that I can substitute my own for?
>
> 4) Note that if I get it working reliable, should be able to use any
> parser I want by just swapping out a parser function and leaving everything
> else. the same.
>
>
> Thankx
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to boltwire+unsubscr...@googlegroups.com.
To post to this group, send email to boltwire@googlegroups.com.
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.