1
TexAcoon
How to identify url paths for Custom Blocks
  • 2010/5/16 14:59

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


For the last few hours .. I have been beating my head on my computer trying to figure what is the correct path from "modules to custom blocks" ???? When making up a new custom block...

Not sure how to identify paths for each of these modules ...

Did research the forum for information .. Could not find anything that was applicable to my question ..

Thanks
Doug

2
ghia
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 18:11

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Not sure what exactly you are trying to do, but
XOOPS_ROOT_PATH.'/modules/mymodule/'
?

3
TexAcoon
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 18:22

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


Hi ghia

Not sure if I am doing this right or not ...

I have a "Custom Block" I made in modules ...
Lets call it "MS" ..

Now I can select it where I want it to go or be visible as wanted.

Back to my HOME PAGE ..
I have a tool bar I want to link to "MS" .. (the block is not being visbile at this time BUT is selected for where I want it to rest on the page.

My issue is how do I determine from my HOME PAGE tool bar to point the custom block "MS"?

Hope this better describes what I'm trying to accomplish .. Normally I just point to the hyerlink in PHP or HTML ...

With XOOPS .. not sure how to point to hyperlinks from the HOME PAGE .. to show on the HOME PAGE

4
ghia
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 18:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Not clear at all!

You have an home page.
On that home page is a toolbar.
The toolbar contain a link.
The link does ... what needs to happen, when it is clicked?
The block is invisible? And how is it shown and where?

Can you explain more, show some code, what, where, when?

5
TexAcoon
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 18:51

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


Here is the code in my theme:

<li><a href="<{xoAppUrl /}>"><b>About Us</b></a></li>


I see href= which is the starting for my hyperlink ...

I have a custom block that I want show .. How do I figure out my hyperlink to the code above .. I do not see any information that describes my hyperlink format when a custom block is created ..

OR am I going the wrong direction with posting something.

6
ghia
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 19:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You mean a custom page and not custom block?

xoAppUrl is pointing to the XOOPS_URL and / to the home page.
If you want to point to /modules/aboutus/ then you add it in the tag:
<li><a href="<{xoAppUrl /modules/aboutus/}>"><b>About Us</b></a></li>




7
TexAcoon
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 19:22

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


OH! .. OK .. let me get that a few tries and see what happens .. However, I made some custom blocks ...
What does it take to make custome pages?

Thanks!

8
Peekay
Re: How to identify url paths for Custom Blocks
  • 2010/5/16 22:47

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


@ghia

Which versions of Xoops support xoAppUrl ?

Does it replace <{$xoops_url}> ?
A thread is for life. Not just for Christmas.

9
ghia
Re: How to identify url paths for Custom Blocks
  • 2010/5/17 0:28

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


@TexAcoon: Where are these blocks? If they are on the same page, you can have an anchor link, to scroll them into view.

@Peekay: Every XOOPS that contains /class/smarty/xoops_plugins/compiler.xoAppUrl.php eg 2.3.x and +.
It is an extension of it, because it accept some parameters to complete the link.


10
TexAcoon
Re: How to identify url paths for Custom Blocks
  • 2010/5/17 2:28

  • TexAcoon

  • Just popping in

  • Posts: 35

  • Since: 2010/5/10


I'll be honest with you ghia .. I do not understand what you are referring to an anchor point to scroll them into...

Still learning Xoops .. getting the hang of it .. but still a little slow on some of the facets of the program..

Login

Username:
Password:

Lost Password? Register now!

Who's Online

66 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jan 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits