Can I programmatically add custom Substitution Components in FP2000?

  • Thread starter Thread starter Vince C.
  • Start date Start date
V

Vince C.

Hi.

I'd like to extend FrontPage 2000 editor with my own list of substitution
components. Is there a way to add substitution variables programmatically (i.e.
those that get pulled from Web Site Parameters when Insert > Component > Insert
Variable).

Note: I'm using a French version of FrontPage so bear with my translation.

Thanks for any hint/suggestion.

Vince C.
 
You would need to access the setBotAttribute Method
http://msdn.microsoft.com/library/d...pd10/html/fpmthsetbotattribute.asp?frame=true
The bots are described at
http://msdn.microsoft.com/library/d...pd10/html/fpmthsetbotattribute.asp?frame=true

--




| Hi.
|
| I'd like to extend FrontPage 2000 editor with my own list of substitution
| components. Is there a way to add substitution variables programmatically (i.e.
| those that get pulled from Web Site Parameters when Insert > Component > Insert
| Variable).
|
| Note: I'm using a French version of FrontPage so bear with my translation.
|
| Thanks for any hint/suggestion.
|
| Vince C.
|
|
 
Stefan B Rusynko said:
You would need to access the setBotAttribute Method
http://msdn.microsoft.com/library/d...pd10/html/fpmthsetbotattribute.asp?frame=true
The bots are described at
http://msdn.microsoft.com/library/d...pd10/html/fpmthsetbotattribute.asp?frame=true

Thanks, Stefan.

If I read it well this is about inserting a webbot into a web page that is
currently edited. Whereas my aim is to store new parameters programmatically
just as if I had opened the "Web parameters" dialog and added name/value pairs.
I'd like to do this programmatically without prompting the box instead.

I saw these name/value pairs are stored in a file called "service.cnf" in a web
site _vti_cnf folder. It's a FrontPage folder. I can always add/remove lines to
that file by code but I bet there is another way?

Vince C.
 
The setBotAttribute Method should actually set the value
You will need to call the bot and set it's attribute (your value)

--




| "Stefan B Rusynko" <[email protected]> a écrit dans le message de
| | > You would need to access the setBotAttribute Method
| >
| http://msdn.microsoft.com/library/d...pd10/html/fpmthsetbotattribute.asp?frame=true
| > The bots are described at
| >
| http://msdn.microsoft.com/library/d...pd10/html/fpmthsetbotattribute.asp?frame=true
|
| Thanks, Stefan.
|
| If I read it well this is about inserting a webbot into a web page that is
| currently edited. Whereas my aim is to store new parameters programmatically
| just as if I had opened the "Web parameters" dialog and added name/value pairs.
| I'd like to do this programmatically without prompting the box instead.
|
| I saw these name/value pairs are stored in a file called "service.cnf" in a web
| site _vti_cnf folder. It's a FrontPage folder. I can always add/remove lines to
| that file by code but I bet there is another way?
|
| Vince C.
|
|
 
Stefan B Rusynko said:
The setBotAttribute Method should actually set the value
You will need to call the bot and set it's attribute (your value)

Thanks, Stefan. I'll try it.

Vince C.
 
Back
Top