Need custom 'include' behavior

I have a copy of "Developing Extensions for Macromedia®
Dreamweaver® 8" but can't seem to figure out how to do what I
want. Please point me in the direction of anything that would help.
I'm working with a CMS that provides the ability to upload
html pages with it's own proprietary include functionality. The
behavior of the include tags is as follows:
***tag value***
where the tag value will either be a filename, such as
"header.shtml" or a CMS code, such as "NAVBAR" Tags can appear
anywhere in the file between the html tags, but can not nest
include constructs.
I want to build an extension that will enable the designtime
preview to resolve these tags and render the resulting code.
Resolving the tags would be inserting the contents of a filename
into page, or, in the case of a CMS code, inserting some mocked up
data that I've stored in a file that I'd configure the extension to
know about.
Can anyone help me get started?
Thanks
Pauli

Pauli,
Starting with DW MX, there is a mechanism to extend the SSI
functionality for Server Models. In the
Configuration/ServerBehaviors/
folder, take a look at these files:
- include_comment.edml
- include_directive.edml
- include_lock.edml
- include_tag.edml
The key is the "_includeUrl" suffix on the end of the
paramName. This is
documented somewhere in the Extending DW book.
I recommend creating a new .edml file for your new search
patterns (as
opposed to editing one of the existing files) to make your
extension
portable.
Warning: be careful with the number search patterns that you
add, and
the efficiency of these patterns as this will have an impact
on your
system performance. For example, avoid ".*" if at all
possible -- use
".*?" (minimum search) instead.
Hope this helps,
Randy
> I have a copy of "Developing Extensions for Macromedia?
Dreamweaver? 8" but
> can't seem to figure out how to do what I want. Please
point me in the
> direction of anything that would help.
>
> I'm working with a CMS that provides the ability to
upload html pages with
> it's own proprietary include functionality. The behavior
of the include tags
> is as follows:
>
> ***tag value***
>
> where the tag value will either be a filename, such as
"header.shtml" or a CMS
> code, such as "NAVBAR" Tags can appear anywhere in the
file between the html
> tags, but can not nest include constructs.
>
> I want to build an extension that will enable the
designtime preview to
> resolve these tags and render the resulting code.
Resolving the tags would be
> inserting the contents of a filename into page, or, in
the case of a CMS code,
> inserting some mocked up data that I've stored in a file
that I'd configure the
> extension to know about.

Similar Messages

  • How to delete the customer include in an infotype

    hi to all experts,
    i have created a ci include in an infotype . i want to delete the fields in that CI Include
    Edited by: mohammed  abdul hai on Apr 13, 2009 11:58 AM

    If you want to delete all fields of the customer include do the following:
    - SE11
    - mark 'Data Type'
    - put in the name of your customer include (e.g. CI_P0491)
    - click on the delete button
    - you'll get a warning, that this include is still used and that all dependent tables will be regenerated
    - confirm
    - customer include is gone
    - In case you already added those fields to your infotype maintenance (PA30) through transaction 'PM01' you will get a dump when using PA30 for that infotype because it still tries to access the additional fields which do not exist in the dictionary any longer. You need to remove your custom fields from the infotype. Go to SM30 for table T582C and you'll find the custom includes that were generated. Just remove the entries for your infotype and you shouldn't get the dump any more.
    Hope that helps,
    Michael

  • Replication of Custom Include IS-U to CRM

    Hello gents!
    CRM 4.0 WebClient, IS-U 4.72.
    Currently custom fields where added to the technical objects in ISU.
    I am currently facing the following problem. A custom include was added into the IFLOT table (Functional Location) in IS-U.
    It appears on the EHAU structure for the Connection object in ISU but is not replicating to CRM.
    Now I need to search the Premise(PoD) based on that custom include.
    The first problem I face is replication. This fields are not being replicated into CRM.
    The BDOCS in question are: SI_CONNOBJ and SI_POD.
    It seems that the connection object from ISU is replicated as a material of some kind in CRM. There is a SET attribute ISU_CONNOBJ but the custom field is not anywhere.
    I have found some badi's to transport custom fields:
    IBSSI_SEND_TO_UPL (CRM)
    This BAdI adds customer-specific data to the BDoc for technical objects before the upload.
    IBSSI_RECEIVE_TO_UPL (IS-U)
    This BAdI reads customer-specific data from the BDoc for technical objects after the upload.
    The data is transferred to the master data generator.
    IBSSI_SEND_TO_UPL (IS-U)
    This BAdI adds customer-specific data to the to the BDoc for technical objects before the
    download.
    IBSSI_RECEIVE_TO_UPL (IS-U)
    This BAdI reads customer-specific data from the BDoc for technical objects after the download.
    I as well thought about making a RFC to select the values I am interested on and then use that to populated the info in the view. However i am not sure if it would be appropiate.
    Any ideas!?
    Thank you,
    Best regards.
    A

    Hi Oguz,
    please check the following threads:
    Variant material replication in CRM
    Download ERP 6.0 configurable products (Material variants) into CRM 7.0
    Hope this helps to answer your questions.
    Best Regards,
    Michael

  • File Adapter: need to include filename in content being written

    I want to use the file adapter to write a file, using the filename convention to generate part of the name dynamically.
    However, I need to include the filename used for the output file in the actual content too.
    Any ideas if this can be done?
    Thanks
    Toby

    At a customer we implemented the file adapter to create a file based on a specic name for appending:
    <assign name="AssignStaticFilename">
    <copy>
    <from expression="'Output.csv'"/>
    <to variable="gFileAdapterOutboundHeader" part="outboundHeader" query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
    </copy>
    </assign>
    In de FileAdapter WSDL we set:
    <jca:operation
    LogicalDirectory="OutputDirectory"
    InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
    FileNamingConvention="%SEQ%"
    NumberMessages="1"
    OpaqueSchema="false"
    Append="true" >
    </jca:operation>
    Does this help you, based on a given input to set the filename and this variable to put it into the file?

  • How to put display-only condition in a custom include program

    hello everyone,
    I have to make a custom include program that will be used instead of the already available 'bdcrecx1'.
    I have a couple of questions and would appreciate your help.
    I need to create a parameter with a checkbox. When this checkbox is 'X' the following 2 fields need to be greyed out, otherwise user should be able to enter values in them. How can I grey out the fields?
    Using my include I should have just the following:
    1)parameter with checkbox
    (if 'X', session and user greyed out)
    2)Session Name
    3)User Name
    Also, is there a way I can avoid putting the following onto the screen:
    1)Keep session (this will always be defaulted to 'X'
    2)No Data
    <b>Note:</b> I made a copy of 'bdcrecx1'and i'm doing changes according to my requirement.
    Thanks in advance.
    Regards,
    Fred.

    Hi,
    For your first question.
    use
    assign user command for checkbox say 'CLICK'..
    at selection-screen output.
    loop at screen.
    if screen-group3 = 'VALUE' and checkbox condition.
    screen-active = 0.
    else
    screen-active = 1.
    endloop.
    To make sure that the user enters the data in fields if checkbox is not grayed,
    do it in event
    start-of selection.
    if field is initial.
    exit.
    go back to previous screen.
    endif.
    for removing 'keep session' , check out for exits..
    Regards,
    Tanveer.
    Please mark helpful answers
    Sorry about the previous error in reply.
    Message was edited by: Tanveer Shaikh

  • Why we need Custom controllers in Model Applications

    Hi Friends
    In Adaptive RFC Model Application we can use both the controllers for creating contex structure
    wat is the main aim for using custom controller
    it has any special feature in custom conrollers
    i read both the controllers have same functionality n flexibility
    any body differentiate these two controllers
    n which one is efficient for connecting Model applications
    Regards
    Narayana

    Hi Narayana,
    There are many situations when you need custom controllers over component controller.
    Suppose you have one DC and you want to make some part of this DC as Public which may include Local context nodes, elements, methods or model context with specified methods to process some functionality. By Interfacing a custom controller with all the exportable methods and context you reach to a certain level of security.
    In this case you are distributing your module in multiple custom controllers which ultimately reduces complexity of programming, code and obviously execution time.
    This is up to  the developer, if he/she wants to create custom controllers or not, but yes in certain situations you should go for custom controllers. It is always good to have multiple custom controllers when you are using single DC for different modules.
    Regards,
    Amol

  • Problem while activating Custom Include

    Hi,
    My requirement is to make a copy of standard include (V50R_ON_OUTPUT) into ZV50R_ON_OUTPUT.
    And to add this custom include in another copy of the main program ZRVV50R10C (copied from RVV50R10C).
    But am facing problem when activating the custom main program ZRVV50R10C.
    Can anyone faced similar issue(as it contains many enhancements, may be the cause)?
    Pls help!
    Thanks!
    Sangar

    Hi Thomas,
    Thanks for ur response.
    I totally understood the upgrade issue, but unfortunately that's my need now.
    The issue am facing is when activating it getting error as "Data not defined". like   ( t_prof1  = %_p_prof1_%_app_%-text.) of the statndard include.
    do i need to add anything in declaration part also?
    Thanks!
    -sangar

  • Use of customizing includes in BT

    Hi Experts,
    Please explain the usage of customizing includes in the business transaction.
    Regards,
    Sangeeta.

    Hi Sanjeeta,
    According to ur CV he may ask abt wat r all configuration settings done by u for the transactions, just explain wat the configuration and cust settings u ve done in ur proj.
    if u ve done any z transactions u need to do all settings in crm accroding to ur backend (R/3)
    all the best
    Ranga

  • How to delete customized include.

    Hi Experts,
               In the EKPO table there is one customized include with name "CI_EKPODB" ,now whats my requirment is I have to delete that include from EKPO table.I deleted that "CI_EKPODB" structure by using SE11 transaction.But still now its showing the name in EKPO table.But that include structure is not in Data Base.But it appears in EKPO table.I need to delete that one from EKPO table also.  Thanks in Advance.
    Thanks and Regards
    Srihari.

    Hello,
    First Logoff and then log on again.
    Still if u see the include then Adjust the table in SE14.
    This will work out.
    Cheers,
    Vasanth

  • Do I need Custom Pagination?

    Hi,
    I want to make a report of a schedule showing 1 week per page.
    The table I have looks something like this:
    Monday 1 March 2012 12:00 PM Event1
    Monday 1 March 2012 13:00 PM Event2
    Monday 1 March 2012 14:00 PM Event3
    Tuesday 2 March 2012 12:00 PM Event4
    Wednesday 3 March 2012 08:00 AM Event5
    (etc.)
    Some days of the week may be missing and some weeks there may not be any data at all, in which a text like "No Events this week" should appear.
    Do I need custom pagination to establish this or are there easier methods?

    In my opinion you should try to avoid customizing the Process Model.  It makes it easier to maintain.  It's even worse when you "need" to change modelsupport2.dll.  UGH!!
    The current sequential model has a whole bunch of callbacks which make it really easy to get desired behavior from your client sequence file.
    Here's what I use for my rule of thumb for customizing the Process Model:
    - Will this modification be useful to multiple projects?
    - Does this modification make it easier all around in the long run. (i.e. less support, less maintenance, less work when creating new tests, etc..)
    - Is my modification strong linked to 1 client sequence file?  A process model should be something that can handle pretty much any sequence file.  If you customize it such that it's linked to a single sequence file then you are probably doing something wrong.
    - Does this modification make sense?  In all reality what am I truly gaining by this modification?
    A couple instances when I've changed the process model:
    - Configuration Entry Sequences to change settings for a test.  This just had a simple callback in it that I always overrode with my client sequence.  It just put a menu item in the user interface so users could get to it.
    - A callback/Configuration Entry which allowed users to link to a document describing what the test did.  Again overridden by my test.  Just used for the menu item.
    - Disabling/Deleting an entry point.  Test UUTs and Single Pass are the default for the sequential model.  I only wanted users to select one.
    Sounds like a crazy project.  I hope it goes well for you.
    Cheers,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Difference between Customer Include and Append

    Hi all,
    We are using a special customer namespace /XXX/. Regarding to this I can not use the Customer Includes (CI_Include) in the SAP tables anymore to add own fields.
    To create my own fields anyway I create a append in the /XXX/ namespace and add my /XXX/fields to this Append.
    It is working, but I want to know if there are situations where the use of an append instead of an include can cause errors?
    What is the difference between include and append?
    Thanks in advance for your help,
    Fabian

    Hi
    NO, because they are the same thing, you use both includes to enhance a standard structure.
    But the Append Include is only used in the structure where it's defined, CI_INCLUDE is used by enhancement so perhaps it can be used in many structures.
    So you have to use CI_INCLUDE only if you need to you its enhancement.
    If the name of include begin of CI_, you won't have any error if that include doesn't exist.
    You can try to build a Z-TABLE and insert the include CI_ZMYINCLUDE after try to check your table: any errors'll occur.
    The same this is for the include with the name begining with ZX...
    Max

  • E-Recruitment Customer Includes

    Can somebody direct me on the process for activating Customer Includes for E-Recruitment?
    I found the list of available CI's, but the HELP doesn't give the activities to follow.  I would like to also determine what additional fields are made available by activating these.
    Justin Folkers

    Hi Justin,
    I can give you the first step..
    In SE11, create a datatype (structure) called CI_Pnnnn.  Once it's activated the new field definitions will be visible in the associated table HRPnnnn.
    The BSP page may also need to be changed and I sorry, but I can't help you with that part.  Depending on the fields you included, some methods used in the '.do' modules of the controller may need to be modified.
    Lori

  • Need Customizing request instead of Workbench for Table Mainetnance

    Hello All,
    I created a ztable with Table Maintenance.
    Whenever I am creating entries using SM30 it is asking workbench request instead of customizing request.
    I need customizing request to be created for table entries.
    Can anybody help me in this regard.

    Hi Eric,
    Thanks a lot!.
    The problem is solved....
    Thank you very much for your help.
    Regards,
    Sunil

  • Need to include header in csv file while using GUI_DOWNLOAD

    Hi,
    Iam using GUI_DOWNLOAD for downloading certain texts,its working fine.now i need to include the header(i'e) some text say 'This is a error file'at the top.how can i do this?

    REPORT  ZTEST12347                              .
    DATA: BEGIN OF ITAB OCCURS 0,
            VBELN LIKE VBAK-VBELN,
            POSNR LIKE VBAP-POSNR,
          END OF ITAB.
    SELECT VBELN
           POSNR
          FROM VBAP
          UP TO 20 ROWS
          INTO TABLE ITAB.
    DATA: IT_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.
    IT_LINE-TDLINE = 'this is error file'.
    append it_line.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                = 'C:test.txt'
      TABLES
        DATA_TAB                = IT_LINE
      EXCEPTIONS
        FILE_WRITE_ERROR        = 1
        NO_BATCH                = 2
        GUI_REFUSE_FILETRANSFER = 3
        INVALID_TYPE            = 4
        NO_AUTHORITY            = 5
        UNKNOWN_ERROR           = 6
        HEADER_NOT_ALLOWED      = 7
        SEPARATOR_NOT_ALLOWED   = 8
        FILESIZE_NOT_ALLOWED    = 9
        HEADER_TOO_LONG         = 10
        DP_ERROR_CREATE         = 11
        DP_ERROR_SEND           = 12
        DP_ERROR_WRITE          = 13
        UNKNOWN_DP_ERROR        = 14
        ACCESS_DENIED           = 15
        DP_OUT_OF_MEMORY        = 16
        DISK_FULL               = 17
        DP_TIMEOUT              = 18
        FILE_NOT_FOUND          = 19
        DATAPROVIDER_EXCEPTION  = 20
        CONTROL_FLUSH_ERROR     = 21
        OTHERS                  = 22.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME                = 'C:test.txt'
        APPEND                  = 'X'
      TABLES
        DATA_TAB                = ITAB
      EXCEPTIONS
        FILE_WRITE_ERROR        = 1
        NO_BATCH                = 2
        GUI_REFUSE_FILETRANSFER = 3
        INVALID_TYPE            = 4
        NO_AUTHORITY            = 5
        UNKNOWN_ERROR           = 6
        HEADER_NOT_ALLOWED      = 7
        SEPARATOR_NOT_ALLOWED   = 8
        FILESIZE_NOT_ALLOWED    = 9
        HEADER_TOO_LONG         = 10
        DP_ERROR_CREATE         = 11
        DP_ERROR_SEND           = 12
        DP_ERROR_WRITE          = 13
        UNKNOWN_DP_ERROR        = 14
        ACCESS_DENIED           = 15
        DP_OUT_OF_MEMORY        = 16
        DISK_FULL               = 17
        DP_TIMEOUT              = 18
        FILE_NOT_FOUND          = 19
        DATAPROVIDER_EXCEPTION  = 20
        CONTROL_FLUSH_ERROR     = 21
        OTHERS                  = 22.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Need to include the R/3 Business system in SLD.

    Now i need to include the R/3 Business system in SLD.
    To do that i have to establish an RFC connection, could anyone guid me what type of RFC connection i need to use like HTTP connection or else other..... Get me the details.

    The distribution, participation in distributing or otherwise sending of this material is against the law. The material you are requesting is copyrighted material and available ONLY to customers of SAP. If you need such documents from the SAP Service Marketplace then you must have "S" user ID and login yourself to retrieve this material. If you do not have a "S" user ID then you should contact your own internal company groups responsible and request one or request them to retrieve the document for you.
    By participating and sending such documents you are at risk for legal action and a removal of your account here on SDN and BPX.
    DO NOT send material via email such as this! Further actions will result in officials within your company and your SAP Sales Account being notified and could result in legal action against you as an individual.

Maybe you are looking for

  • Time to improve...

    Hewwo everyone... I lately finely got my hands on the Lumia 800... I'm quite satisfied with it, but also disappointed... I was excepting a bit more... First, we lately blamed Nokia for the battery life... I'm an old Symbian user and new to WP7, but b

  • Where to thind driver in oracle 8i

    Hi, I am writing a program to connecto database using thih driver,by using ipadressof server where oracle 8i is installed.But thin driver is not installed there. so i downloaded but don't where to keep.can any one help me out. How may ways can we com

  • How to link content repository (DMS) to dmsrm folder (KM)

    Hi. I have installed Business Package to connect DMS with KM. The folder dmsrm was created, now I need to create a Content Repository in ECC 6.0 but, How to link the content repository with dmsrm folder ???. Can I see all documents into dmsrm folder

  • ECU Toolkit - Change x-axis values of characteri​stic

    Hello all, I would like to ask for help with ECU toolkit. I establish communication with ECU (CCP), send in and out characteristics/measurements. Now I need to send special type of characteristic - Curve (1D). I use MC Characteristic Write.vi to chan

  • Direct-connect inside network with dynamically assigned IP-addresses

    I have 13+GiB of files to transfer between two computers (one arch and one Win7) and would rather not spend the day moving them ~1GiB at a time via flashdrives. I have tried setting up an ad-hoc network on the win7 machine, but wifi-menu fails to con